:root {
  --zh-content-text: #1d1d1f;
  --zh-content-muted: #6e6e73;
  --zh-content-border: rgba(0, 0, 0, .10);
  --zh-content-blue: #0071e3;
  --zh-content-blue-bg: #eef6ff;
  --zh-content-green: #0b7f48;
  --zh-content-green-bg: #edf9f2;
  --zh-content-amber: #9a5b00;
  --zh-content-amber-bg: #fff7e8;
  --zh-content-red: #b42318;
  --zh-content-red-bg: #fff1f0;
}

.as-detail-content,
.detail-content,
.as-notice-body {
  color: var(--zh-content-text);
  font-size: 15px;
  line-height: 1.86;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.zh-content-enhanced {
  display: grid;
  gap: 14px;
}

.zh-content-enhanced > * {
  margin: 0;
}

.zh-content-enhanced .zh-lead {
  padding: 14px 16px;
  border: 1px solid var(--zh-content-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--zh-content-text);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 650;
}

.zh-content-enhanced .zh-title,
.zh-content-enhanced h1,
.zh-content-enhanced h2,
.zh-content-enhanced h3 {
  position: relative;
  margin-top: 10px;
  padding-left: 12px;
  color: var(--zh-content-text);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 760;
  letter-spacing: 0;
}

.zh-content-enhanced .zh-title::before,
.zh-content-enhanced h1::before,
.zh-content-enhanced h2::before,
.zh-content-enhanced h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 4px;
  height: 1.05em;
  border-radius: 99px;
  background: var(--zh-content-blue);
}

.zh-content-enhanced p {
  color: #343437;
  line-height: 1.86;
}

.zh-content-enhanced ul,
.zh-content-enhanced ol {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--zh-content-border);
  border-radius: 8px;
  background: #fbfbfd;
  list-style: none;
}

.zh-content-enhanced li {
  position: relative;
  padding-left: 20px;
  color: #303033;
  line-height: 1.72;
}

.zh-content-enhanced li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .76em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--zh-content-blue);
}

.zh-content-enhanced .zh-callout {
  padding: 13px 15px;
  border: 1px solid rgba(0, 113, 227, .18);
  border-radius: 8px;
  background: var(--zh-content-blue-bg);
  color: #15395f;
  line-height: 1.76;
}

.zh-content-enhanced .zh-callout.is-success {
  border-color: rgba(11, 127, 72, .20);
  background: var(--zh-content-green-bg);
  color: #155f39;
}

.zh-content-enhanced .zh-callout.is-warning {
  border-color: rgba(154, 91, 0, .22);
  background: var(--zh-content-amber-bg);
  color: var(--zh-content-amber);
}

.zh-content-enhanced .zh-callout.is-danger {
  border-color: rgba(180, 35, 24, .18);
  background: var(--zh-content-red-bg);
  color: var(--zh-content-red);
}

.zh-content-enhanced mark {
  padding: .08em .28em;
  border-radius: 5px;
  background: rgba(0, 113, 227, .10);
  color: #0057b8;
  font-weight: 760;
}

.zh-content-enhanced mark.zh-hot {
  background: rgba(11, 127, 72, .11);
  color: var(--zh-content-green);
}

.zh-content-enhanced mark.zh-warn {
  background: rgba(180, 35, 24, .10);
  color: var(--zh-content-red);
}

.zh-content-enhanced a {
  color: var(--zh-content-blue);
  font-weight: 650;
  text-decoration: none;
}

.zh-content-enhanced a:hover {
  text-decoration: underline;
}

.as-notice-body.zh-content-enhanced {
  gap: 12px;
}

.as-notice-body.zh-content-enhanced .zh-lead {
  font-size: 16px;
}

@media (max-width: 720px) {
  .as-detail-content,
  .detail-content,
  .as-notice-body {
    font-size: 14px;
    line-height: 1.78;
  }

  .zh-content-enhanced {
    gap: 12px;
  }

  .zh-content-enhanced .zh-lead,
  .zh-content-enhanced .zh-callout,
  .zh-content-enhanced ul,
  .zh-content-enhanced ol {
    padding: 12px;
  }

  .zh-content-enhanced .zh-title,
  .zh-content-enhanced h1,
  .zh-content-enhanced h2,
  .zh-content-enhanced h3 {
    font-size: 16px;
  }
}

/* 2026-07-21: keep enhanced product-detail lists from inheriting the theme's
   ordered-list counters. The editor often preserves native <ol>/<li> markup
   when a product description contains images, so this layer deliberately uses
   higher specificity than AppleStoreAIPro's .as-detail-content ol li::before. */
.as-detail-content.zh-content-enhanced ul,
.as-detail-content.zh-content-enhanced ol,
.detail-content.zh-content-enhanced ul,
.detail-content.zh-content-enhanced ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--zh-content-border);
  border-radius: 8px;
  background: #fbfbfd;
  list-style: none !important;
  counter-reset: none !important;
}

.as-detail-content.zh-content-enhanced li,
.detail-content.zh-content-enhanced li {
  position: relative;
  box-sizing: border-box;
  display: block;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px 11px 38px !important;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: rgba(248, 250, 252, .86);
  color: #303033;
  line-height: 1.66;
  overflow: visible;
}

.as-detail-content.zh-content-enhanced ul li::before,
.as-detail-content.zh-content-enhanced ol li::before,
.detail-content.zh-content-enhanced ul li::before,
.detail-content.zh-content-enhanced ol li::before {
  content: "" !important;
  position: absolute;
  left: 16px !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--zh-content-blue) !important;
  box-shadow: 0 0 0 5px #e8f2ff !important;
  transform: translateY(-50%) !important;
  pointer-events: none;
}

.as-detail-content.zh-content-enhanced li > *,
.detail-content.zh-content-enhanced li > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .as-detail-content.zh-content-enhanced ul,
  .as-detail-content.zh-content-enhanced ol,
  .detail-content.zh-content-enhanced ul,
  .detail-content.zh-content-enhanced ol {
    padding: 10px;
  }

  .as-detail-content.zh-content-enhanced li,
  .detail-content.zh-content-enhanced li {
    min-height: 42px;
    padding: 10px 12px 10px 36px !important;
  }

  .as-detail-content.zh-content-enhanced ul li::before,
  .as-detail-content.zh-content-enhanced ol li::before,
  .detail-content.zh-content-enhanced ul li::before,
  .detail-content.zh-content-enhanced ol li::before {
    left: 15px !important;
  }
}
