/* MOMOIP article readability and consistent index cards */
.index .article {
  overflow: hidden;
  border: 1px solid #e8edf2;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .035);
}
.index .article .article-inner { min-height: 180px; }
.index .article .article-inner .article-feature { flex-basis: 260px; }
.index .article .article-inner .article-feature a,
.index .article .article-inner .article-feature img { height: 180px; }
.index .article .article-inner .article-feature img { object-fit: cover; }
.index .article .article-inner .article-body .article-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.index .article .article-inner .article-body .article-entry {
  max-height: 112px;
  overflow: hidden;
  line-height: 1.75;
}
.index .article .article-inner .article-body .article-entry > :first-child { margin-top: 0; }
.index .article .article-inner .article-body .article-entry > :last-child { margin-bottom: 0; }

.post .article {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(23, 32, 51, .045);
}
.post .article .article-header .article-title {
  padding-top: 0;
  color: #172033;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}
.post .article .article-more-info {
  margin: 18px 0 34px;
  padding-bottom: 22px;
}
.post .article-entry.post-inner-html {
  color: #344054;
  font-size: 15px;
  line-height: 1.9;
}
.post .article-entry.post-inner-html > h1:first-child { display: none; }
.post .article-entry.post-inner-html > h2 {
  position: relative;
  margin-top: 44px;
  margin-bottom: 18px;
  padding-left: 15px;
  color: #172033;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}
.post .article-entry.post-inner-html > h2::before {
  content: "";
  position: absolute;
  top: .18em;
  bottom: .18em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--color-light);
}
.post .article-entry.post-inner-html > h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  color: #263247;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}
.post .article-entry.post-inner-html > p { margin: 16px 0; }
.post .article-entry.post-inner-html > ul,
.post .article-entry.post-inner-html > ol {
  margin: 18px 0;
  padding: 16px 20px 16px 42px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #f7f9fc;
}
.post .article-entry.post-inner-html li { margin: 5px 0; }
.post .article-entry.post-inner-html > blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-light);
  border-radius: 0 10px 10px 0;
  color: #475467;
  background: #f3f8f8;
}
.post .article-entry.post-inner-html > hr {
  margin: 34px 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8edf2;
}
.post .article-entry.post-inner-html img {
  margin: 22px auto;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .08);
}
.post .article-entry.post-inner-html a {
  color: #087f8c;
  font-weight: 600;
  border-bottom-color: rgba(8, 127, 140, .25);
}
.post .article-entry.post-inner-html table {
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 10px;
}

/* Rich tutorial treatment for every standard article */
.post .article-guide .guide-hero {
  position: relative;
  margin: 0 0 34px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #dce8ed;
  border-radius: 17px;
  background: linear-gradient(135deg, #f8fcfc 0%, #edf7f8 100%);
}
.post .article-guide .guide-hero::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(17, 157, 164, .09);
}
.post .article-guide .guide-hero-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #087f8c;
  background: #dff3f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.post .article-guide .guide-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: #172033;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 750;
}
.post .article-guide .guide-hero p {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0;
  color: #667085;
  line-height: 1.8;
}
.post .article-guide .guide-hero-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.post .article-guide .guide-hero-points span {
  padding: 6px 11px;
  border: 1px solid #d8e8ea;
  border-radius: 8px;
  color: #3b5960;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 650;
}
.post .article-guide .article-entry > ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
}
.post .article-guide .article-entry > ul:first-of-type > li {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 14px 15px 14px 39px;
  border: 1px solid #e5ebef;
  border-radius: 11px;
  list-style: none;
  color: #475467;
  background: #fff;
}
.post .article-guide .article-entry > ul:first-of-type > li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #119da4;
  font-size: 11px;
  font-weight: 800;
}
.post .article-guide .article-entry > ol {
  position: relative;
  padding: 18px 20px 18px 48px;
  border: 1px solid #e3eaee;
  border-left: 4px solid #119da4;
  background: #fbfdfd;
  box-shadow: 0 7px 20px rgba(23, 32, 51, .035);
}
.post .article-guide .article-entry > h2 + p:has(a),
.post .article-guide .article-entry > h2 + p + p:has(a) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post .article-guide .article-entry > h2 + p:has(a) > a,
.post .article-guide .article-entry > h2 + p + p:has(a) > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cce3e5;
  border-radius: 9px;
  color: #087f8c;
  background: #f1f9f9;
  text-decoration: none;
}
.post .article-guide .article-entry > iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px auto;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .1);
}
@media screen and (max-width: 600px) {
  .index .article .article-inner { min-height: 0; }
  .index .article .article-inner .article-feature { flex-basis: auto; }
  .index .article .article-inner .article-feature a,
  .index .article .article-inner .article-feature img { height: 190px; }
  .index .article .article-inner .article-body .article-entry { max-height: 104px; }
  .post .article { padding: 20px 17px; border-radius: 12px; }
  .post .article .article-header .article-title { font-size: 24px; }
  .post .article .article-more-info { flex-wrap: wrap; gap: 8px 0; }
  .post .article-entry.post-inner-html > h2 { margin-top: 34px; font-size: 20px; }
  .post .article-entry.post-inner-html > ul,
  .post .article-entry.post-inner-html > ol { padding: 14px 14px 14px 34px; }
  .post .article-guide .guide-hero { padding: 22px 18px; }
  .post .article-guide .guide-hero h2 { font-size: 22px; }
  .post .article-guide .article-entry > ul:first-of-type { grid-template-columns: 1fr; }
  .post .article-guide .article-entry > ul:first-of-type > li { padding: 13px 13px 13px 38px; }
}

/* BMW unified visual language for all standard tutorials */
.post .article.article-guide {
  --guide-blue: #2563eb;
  --guide-blue-dark: #1d4ed8;
  --guide-ink: #172033;
  --guide-muted: #667085;
  --guide-line: #e6eaf0;
  --guide-soft: #f6f8fb;
}
.post .article-guide .guide-hero {
  margin-bottom: 38px;
  padding: 30px;
  border-color: #dce6f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}
.post .article-guide .guide-hero::after { display: none; }
.post .article-guide .guide-hero-eyebrow {
  margin-bottom: 12px;
  padding: 4px 10px;
  color: var(--guide-blue-dark);
  background: #dfeaff;
}
.post .article-guide .guide-hero h2 {
  margin: 0 0 10px;
  color: var(--guide-ink);
  font-size: 28px;
  line-height: 1.35;
}
.post .article-guide .guide-hero p { color: var(--guide-muted); }
.post .article-guide .guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.post .article-guide .guide-feature {
  padding: 16px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
}
.post .article-guide .guide-feature strong {
  display: block;
  margin-bottom: 3px;
  color: var(--guide-ink);
  font-weight: 750;
}
.post .article-guide .guide-feature span {
  color: var(--guide-muted);
  font-size: 13px;
}
.post .article-guide .article-entry { counter-reset: guide-step; }
.post .article-guide .article-entry > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 0;
  color: var(--guide-ink);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 750;
}
.post .article-guide .article-entry > h2::before {
  position: static;
  flex: 0 0 auto;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--guide-blue);
}
.post .article-guide .article-entry > h3 { color: var(--guide-ink); }
.post .article-guide .article-entry > ul:first-of-type {
  gap: 12px;
  margin: 20px 0 34px;
}
.post .article-guide .article-entry > ul:first-of-type > li {
  min-height: 68px;
  padding: 16px 16px 16px 45px;
  border-color: var(--guide-line);
  border-radius: 12px;
  color: var(--guide-muted);
  box-shadow: 0 8px 24px rgba(23, 32, 51, .035);
}
.post .article-guide .article-entry > ul:first-of-type > li::before {
  top: 17px;
  left: 16px;
  width: 20px;
  height: 20px;
  background: var(--guide-blue);
}
.post .article-guide .article-entry > ol {
  counter-increment: guide-step;
  position: relative;
  min-height: 80px;
  margin: 18px 0;
  padding: 22px 22px 22px 70px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .045);
}
.post .article-guide .article-entry > ol::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--guide-blue);
  font-size: 12px;
  font-weight: 800;
}
.post .article-guide .article-entry > ol > li {
  margin: 0;
  padding: 0;
  color: var(--guide-muted);
  list-style: none;
}
.post .article-guide .article-entry > p:has(a) {
  line-height: 1.8;
}
.post .article-guide .article-entry > h2 + p:has(a),
.post .article-guide .article-entry > h2 + p + p:has(a) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.post .article-guide .article-entry > h2 + p:has(a) > a,
.post .article-guide .article-entry > h2 + p + p:has(a) > a,
.post .article-guide .article-entry > h2 + p:has(a) > u,
.post .article-guide .article-entry > h2 + p + p:has(a) > u {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 17px;
  border: 1px solid var(--guide-line);
  border-radius: 13px;
  color: var(--guide-ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .035);
  text-decoration: none;
}
.post .article-guide .article-entry > h2 + p:has(a) > u a,
.post .article-guide .article-entry > h2 + p + p:has(a) > u a { color: var(--guide-blue-dark); }
.post .article-guide .article-entry a {
  color: var(--guide-blue-dark);
  border-bottom-color: rgba(37, 99, 235, .24);
}
.post .article-guide .article-entry img {
  border-color: var(--guide-line);
  border-radius: 12px;
  background: var(--guide-soft);
}
.post .article-guide .article-entry > blockquote {
  border-left-color: var(--guide-blue);
  color: #475467;
  background: #f3f6fd;
}
.post .article-guide .guide-help {
  margin-top: 36px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  background: var(--guide-ink);
}
.post .article-guide .guide-help h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 750;
}
.post .article-guide .guide-help p {
  margin: 0 0 15px;
  color: #cbd5e1;
}
.post .article-guide .guide-help a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 9px;
  color: var(--guide-ink);
  background: #fff;
  font-weight: 750;
}
@media screen and (max-width: 600px) {
  .post .article-guide .guide-hero { padding: 22px 18px; }
  .post .article-guide .guide-hero h2 { font-size: 23px; }
  .post .article-guide .guide-feature-grid,
  .post .article-guide .article-entry > h2 + p:has(a),
  .post .article-guide .article-entry > h2 + p + p:has(a) { grid-template-columns: 1fr; }
  .post .article-guide .article-entry > ol { padding: 62px 17px 18px; }
  .post .article-guide .article-entry > ol::before { top: 16px; left: 17px; }
}

/* Complete legacy-Markdown normalization */
.post .article-guide .article-entry > hr { display: none; }
.post .article-guide .article-entry > ol {
  counter-increment: none;
  display: grid;
  gap: 18px;
  margin: 18px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.post .article-guide .article-entry > ol::before { display: none; }
.post .article-guide .article-entry > ol > li {
  counter-increment: guide-step;
  position: relative;
  min-height: 80px;
  margin: 0;
  padding: 22px 22px 22px 70px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  color: var(--guide-muted);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .045);
}
.post .article-guide .article-entry > ol > li::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--guide-blue);
  font-size: 12px;
  font-weight: 800;
}
.post .article-guide .article-entry > ol > li > img,
.post .article-guide .article-entry > ol > li > p > img {
  width: 100%;
  margin: 18px 0 0;
}
.post .article-guide .article-entry > p:has(> a):not(:has(img)):not(:has(br)) {
  min-height: 64px;
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--guide-line);
  border-radius: 13px;
  color: var(--guide-muted);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .04);
}
.post .article-guide .article-entry > p:has(> a):not(:has(img)):not(:has(br)) > a {
  display: inline-flex;
  align-items: center;
  color: var(--guide-blue-dark);
  font-weight: 750;
}
.post .article-guide .article-entry > p:has(> a):not(:has(img)):not(:has(br)) > a::after {
  content: "→";
  margin-left: 10px;
  color: var(--guide-blue);
}
.post .article-guide .article-entry > h2 + p:has(a),
.post .article-guide .article-entry > h2 + p + p:has(a),
.post .article-guide .article-entry > h2 + p + p + p:has(a),
.post .article-guide .article-entry > h2 + p + p + p + p:has(a) {
  display: block;
  grid-template-columns: none;
}
.post .article-guide .article-entry > h2 + p:has(a) > a,
.post .article-guide .article-entry > h2 + p + p:has(a) > a,
.post .article-guide .article-entry > h2 + p + p + p:has(a) > a,
.post .article-guide .article-entry > h2 + p + p + p + p:has(a) > a {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.post .article-guide .article-entry > h2[id^="步骤"] {
  padding: 18px 20px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .04);
}
.post .article-guide .article-entry > h2[id^="步骤"]::before {
  width: 4px;
  height: 24px;
}
.post .article-guide .article-entry video {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 0;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .1);
}
.post .article-guide .article-entry code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.post .article-guide .article-entry a {
  overflow-wrap: anywhere;
}
.post .article-guide .article-entry > h2[id^="步骤"] + p:has(a) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.post .article-guide .article-entry > h2[id^="步骤"] + p:has(a) > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 17px;
  border: 1px solid var(--guide-line);
  border-radius: 13px;
  color: var(--guide-blue-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .04);
}
.post .article-guide .article-entry > h2[id^="步骤"] + p:has(a) > a::after {
  content: "→";
  margin-left: auto;
  padding-left: 10px;
  color: var(--guide-blue);
}
@media screen and (max-width: 600px) {
  .post .article-guide .article-entry > ol > li { padding: 62px 17px 18px; }
  .post .article-guide .article-entry > ol > li::before { top: 16px; left: 17px; }
  .post .article-guide .article-entry > h2[id^="步骤"] { padding: 15px 16px; }
  .post .article-guide .article-entry > h2[id^="步骤"] + p:has(a) { grid-template-columns: 1fr; }
}
