/* ---- WeChat Official Account Article Style ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.wx-article {
  margin: 0;
  background: #ededed;
  color: rgba(0, 0, 0, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.544px;
  -webkit-font-smoothing: antialiased;
}

.wx-article a {
  color: #576b95;
  text-decoration: none;
}

.wx-article a:hover {
  text-decoration: underline;
}

/* Account bar (simulated WeChat header) */
.wx-account {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ededed;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.wx-account__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wx-account__name {
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: 0;
}

.wx-account__follow {
  margin-left: auto;
  padding: 4px 12px;
  font-size: 13px;
  color: #07c160;
  border: 1px solid #07c160;
  border-radius: 4px;
  background: transparent;
  letter-spacing: 0;
  text-decoration: none;
}

.wx-account__follow:hover {
  background: rgba(7, 193, 96, 0.06);
  text-decoration: none;
}

/* Article shell */
.wx-article__wrap {
  max-width: 677px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  background: #fff;
  min-height: calc(100vh - 49px);
}

/* Title block */
.wx-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: 0.578px;
}

.wx-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0;
}

.wx-meta__author {
  color: #576b95;
  font-weight: 500;
}

.wx-meta__dot {
  color: rgba(0, 0, 0, 0.15);
}

/* Body content */
.wx-content {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.9);
  word-wrap: break-word;
}

.wx-content > *:first-child {
  margin-top: 0;
}

.wx-content p {
  margin: 0 0 1.2em;
  text-align: justify;
}

.wx-content strong {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
}

.wx-content em {
  font-style: normal;
  color: #fa5151;
}

/* Section heading — WeChat style with green left bar */
.wx-h2 {
  margin: 1.8em 0 0.8em;
  padding-left: 10px;
  border-left: 3px solid #07c160;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: 0.578px;
}

.wx-h2:first-child {
  margin-top: 0;
}

.wx-h3 {
  margin: 1.4em 0 0.6em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.9);
}

/* Lead / intro highlight */
.wx-lead {
  margin: 0 0 1.2em;
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  text-align: justify;
}

/* Blockquote */
.wx-quote {
  margin: 1.2em 0;
  padding: 12px 16px;
  background: #f7f7f7;
  border-left: 3px solid #c8c8c8;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.55);
}

.wx-quote p {
  margin: 0;
}

/* Lists */
.wx-list {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.wx-list li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 1.2em;
  text-align: justify;
}

.wx-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #07c160;
  font-weight: 700;
}

.wx-list--num {
  counter-reset: wx-num;
}

.wx-list--num li {
  counter-increment: wx-num;
  padding-left: 1.6em;
}

.wx-list--num li::before {
  content: counter(wx-num) ".";
  color: rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 15px;
}

/* Info card (key-value blocks) */
.wx-info-grid {
  display: grid;
  gap: 10px;
  margin: 1.2em 0;
}

.wx-info-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.6;
}

.wx-info-item__label {
  flex-shrink: 0;
  min-width: 72px;
  color: rgba(0, 0, 0, 0.45);
}

.wx-info-item__value {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

/* Images */
.wx-figure {
  margin: 1.4em 0;
  text-align: center;
}

.wx-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.wx-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0;
}

/* Divider */
.wx-divider {
  margin: 1.8em 0;
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Highlight box */
.wx-highlight {
  margin: 1.2em 0;
  padding: 16px;
  background: linear-gradient(135deg, #f0faf4 0%, #f7f7f7 100%);
  border: 1px solid rgba(7, 193, 96, 0.2);
  border-radius: 6px;
}

.wx-highlight__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #07c160;
}

.wx-highlight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

/* CTA block */
.wx-cta {
  margin: 2em 0 0;
  background: linear-gradient(180deg, #f0faf4 0%, #fafafa 100%);
  border: 1px solid rgba(7, 193, 96, 0.18);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.wx-cta__head {
  padding: 22px 18px 0;
}

.wx-cta__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
}

.wx-cta__title::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 0 auto 12px;
  background: #07c160;
  border-radius: 2px;
}

.wx-cta__desc {
  margin: 0;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.wx-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
}

.wx-article .wx-cta__btn {
  flex: none;
  width: 100%;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #0acb6a 0%, #06a854 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.22);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wx-article .wx-cta__btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #06b35c 0%, #059648 100%);
  box-shadow: 0 6px 18px rgba(7, 193, 96, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.wx-article .wx-cta__btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);
}

.wx-article .wx-cta__btn--secondary {
  color: rgba(0, 0, 0, 0.72);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wx-article .wx-cta__btn--secondary:hover {
  color: #059648;
  background: #fff;
  border-color: rgba(7, 193, 96, 0.22);
  box-shadow: 0 3px 12px rgba(7, 193, 96, 0.1);
}

.wx-cta__footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(7, 193, 96, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.wx-cta__person {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  letter-spacing: 0;
}

.wx-cta__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.wx-cta__links a {
  color: #576b95;
  word-break: break-all;
}

.wx-cta__links a:hover {
  color: #07c160;
}

/* Article footer */
.wx-article-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.wx-read-count {
  margin: 0 0 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0;
}

.wx-read-count [data-wx-read-count] {
  font-variant-numeric: tabular-nums;
}

.wx-read-more {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 24px;
  font-size: 14px;
  color: #576b95;
  border: 1px solid rgba(87, 107, 149, 0.4);
  border-radius: 4px;
  letter-spacing: 0;
  text-decoration: none;
}

.wx-read-more:hover {
  background: rgba(87, 107, 149, 0.05);
  text-decoration: none;
}

.wx-end-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0;
}

.wx-end-mark::before,
.wx-end-mark::after {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.wx-icp {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0;
}

.wx-icp a {
  color: rgba(0, 0, 0, 0.35);
}

/* Desktop: card floating on gray bg */
@media (min-width: 720px) {
  body.wx-article {
    padding: 24px 16px 48px;
  }

  .wx-article__wrap {
    padding: 32px 40px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .wx-account {
    max-width: 677px;
    margin: 0 auto;
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
  }

  .wx-article__wrap {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
  }
}

@media (min-width: 481px) {
  .wx-cta__actions {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    padding: 22px 24px 24px;
  }

  .wx-article .wx-cta__btn {
    flex: 1;
    width: auto;
    max-width: 168px;
  }
}

@media (max-width: 480px) {
  .wx-cta__links {
    flex-direction: column;
    gap: 4px;
  }
}
