/* ============================================================
   page-blog-article-apple.css — 博客文章 · Apple 极简
   ============================================================ */

html.theme-apple-minimal #home-nav {
  position: sticky;
  top: 0;
}

html.theme-apple-minimal #page-article {
  --ar-content-max: 64rem;
  background: #fafafa;
  padding-bottom: 4rem;
}

html.theme-apple-minimal #page-article .max-w-3xl,
html.theme-apple-minimal #page-article .blog-article-body {
  max-width: var(--ar-content-max);
}

/* —— Top / breadcrumb —— */
html.theme-apple-minimal #page-article .ar-top {
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}

html.theme-apple-minimal #page-article .ar-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
}

html.theme-apple-minimal #page-article .ar-breadcrumb a {
  color: #86868b;
  text-decoration: none;
  transition: color 0.15s ease;
}

html.theme-apple-minimal #page-article .ar-breadcrumb a:hover {
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .ar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 14px;
  font-weight: 600;
  color: #2997ff;
  text-decoration: none;
}

html.theme-apple-minimal #page-article .ar-back:hover {
  text-decoration: underline;
}

/* —— Headline —— */
html.theme-apple-minimal #page-article .blog-article-head {
  margin: 0;
}

html.theme-apple-minimal #page-article .ar-category {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 980px;
}

html.theme-apple-minimal #page-article .blog-article-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-meta {
  margin: 0 0 0.5rem;
  font-size: 14px;
  color: #86868b;
}

html.theme-apple-minimal #page-article .blog-article-meta__label {
  font-weight: 500;
}

html.theme-apple-minimal #page-article .blog-article-date {
  font-weight: 600;
  color: #515154;
}

html.theme-apple-minimal #page-article .blog-article-lead {
  margin: 0;
  font-size: 14px;
  color: #86868b;
  font-weight: 500;
}

html.theme-apple-minimal #page-article .blog-article-readtime {
  opacity: 1;
  font-size: inherit;
}

/* —— Hero image —— */
html.theme-apple-minimal #page-article .article-hero {
  margin: 0 auto 2.5rem;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  background: #fff;
}

html.theme-apple-minimal #page-article .article-hero img {
  display: block;
  width: 100%;
  height: clamp(200px, 38vw, 420px);
  object-fit: cover;
  object-position: center;
}

/* —— Prose layout —— */
html.theme-apple-minimal #page-article .ar-body-wrap {
  padding-bottom: 2rem;
}

html.theme-apple-minimal #page-article .blog-article-body {
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-body p {
  margin: 0 0 1.15em;
  color: #515154;
}

/* —— Headings —— */
html.theme-apple-minimal #page-article .blog-article-body h2 {
  margin: 2em 0 0.65em;
  padding: 0;
  border: none;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #1d1d1f;
  scroll-margin-top: 5rem;
}

html.theme-apple-minimal #page-article .blog-article-body h3 {
  margin: 1.6em 0 0.55em;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1d1d1f;
  scroll-margin-top: 5rem;
}

html.theme-apple-minimal #page-article .blog-article-body h4,
html.theme-apple-minimal #page-article .blog-article-body h5 {
  margin: 1.35em 0 0.45em;
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: normal;
  text-transform: none;
  scroll-margin-top: 5rem;
}

/* —— Inline —— */
html.theme-apple-minimal #page-article .blog-article-body strong,
html.theme-apple-minimal #page-article .blog-article-body b {
  color: #1d1d1f;
  font-weight: 700;
}

html.theme-apple-minimal #page-article .blog-article-body a {
  color: #2997ff;
  text-decoration: underline;
  text-decoration-color: rgba(41, 151, 255, 0.35);
  text-underline-offset: 2px;
}

html.theme-apple-minimal #page-article .blog-article-body a:hover {
  color: #0077ed;
}

html.theme-apple-minimal #page-article .blog-article-body code {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-body kbd {
  background: #fff;
  border-color: #d2d2d7;
  box-shadow: inset 0 -2px 0 #e5e5ea;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-body del {
  color: #86868b;
  text-decoration-color: #d2d2d7;
}

html.theme-apple-minimal #page-article .blog-article-body mark {
  background: rgba(255, 214, 10, 0.35);
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-body ol,
html.theme-apple-minimal #page-article .blog-article-body ul:not([class]),
html.theme-apple-minimal #page-article .blog-article-body dd,
html.theme-apple-minimal #page-article .article-body-list {
  color: #515154;
}

html.theme-apple-minimal #page-article .blog-article-body dt {
  color: #1d1d1f;
  font-weight: 700;
}

html.theme-apple-minimal #page-article .article-body-list strong {
  color: #1d1d1f;
}

/* —— Blockquote / hr —— */
html.theme-apple-minimal #page-article .blog-article-body blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #d2d2d7;
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: #515154;
}

html.theme-apple-minimal #page-article .blog-article-body hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid #e5e5ea;
}

/* —— Code blocks —— */
html.theme-apple-minimal #page-article .blog-article-body pre:not([class]),
html.theme-apple-minimal #page-article .blog-article-body pre.article-code,
html.theme-apple-minimal #page-article .article-code-wrap {
  background: #1d1d1f;
  border: none;
  border-radius: 14px;
  color: #f5f5f7;
}

html.theme-apple-minimal #page-article .article-code-label {
  background: #2d2d2f;
  border-color: #424245;
  color: #f5f5f7;
}

html.theme-apple-minimal #page-article .blog-article-body pre:not([class]) code,
html.theme-apple-minimal #page-article .blog-article-body pre.article-code code {
  background: none;
  border: none;
  color: inherit;
}

/* —— Tables —— */
html.theme-apple-minimal #page-article .article-table-wrap,
html.theme-apple-minimal #page-article .blog-article-body table:not([class]) {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e5ea;
  box-shadow: none;
}

html.theme-apple-minimal #page-article .article-table th,
html.theme-apple-minimal #page-article .blog-article-body th {
  background: #f5f5f7;
  color: #86868b;
  font-weight: 600;
  font-size: 13px;
}

html.theme-apple-minimal #page-article .article-table td,
html.theme-apple-minimal #page-article .blog-article-body td {
  background: #fff;
  border-color: #e5e5ea;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .article-table tr:nth-child(even) td {
  background: #fafafa;
}

/* —— Figures —— */
html.theme-apple-minimal #page-article .article-fig {
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #fff;
}

html.theme-apple-minimal #page-article .article-fig figcaption,
html.theme-apple-minimal #page-article .blog-article-body figcaption {
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: #86868b;
  background: #fafafa;
  border-top: 1px solid #e5e5ea;
}

html.theme-apple-minimal #page-article .blog-figure-diagram {
  margin: 2rem auto;
  max-width: 820px;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #fff;
}

html.theme-apple-minimal #page-article .blog-figure-diagram img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

html.theme-apple-minimal #page-article .blog-figure-diagram figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: #86868b;
  text-align: center;
  background: #fafafa;
  border-top: 1px solid #e5e5ea;
}

/* —— Stats row —— */
html.theme-apple-minimal #page-article .article-stats-row {
  gap: 12px;
}

html.theme-apple-minimal #page-article .article-stat-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: none;
}

html.theme-apple-minimal #page-article .article-stat-num {
  background: none;
  -webkit-text-fill-color: unset;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .article-stat-label {
  color: #86868b;
}

/* —— TOC —— */
html.theme-apple-minimal #page-article .article-toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
}

html.theme-apple-minimal #page-article .article-toc__title {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
}

html.theme-apple-minimal #page-article .article-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.theme-apple-minimal #page-article .article-toc__list > li > a {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.35rem 0.5rem;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #515154;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

html.theme-apple-minimal #page-article .article-toc__list > li > a:hover,
html.theme-apple-minimal #page-article .article-toc__sublist a:hover {
  color: #1d1d1f;
  background: #f5f5f7;
}

html.theme-apple-minimal #page-article .article-toc__list > li > a::before,
html.theme-apple-minimal #page-article .article-toc__sublist a::before {
  color: #86868b;
}

html.theme-apple-minimal #page-article .article-toc__sublist {
  margin: 0.25rem 0 0.5rem 1rem;
  padding: 0;
  list-style: none;
}

html.theme-apple-minimal #page-article .article-toc__sublist a {
  display: block;
  padding: 0.3rem 0.5rem;
  margin: 0;
  font-size: 13px;
  color: #86868b;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

/* —— Callouts —— */
html.theme-apple-minimal #page-article .article-callout {
  display: flex;
  gap: 12px;
  margin: 1.5em 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #e5e5ea;
  background: #fff;
  backdrop-filter: none;
  box-shadow: none;
}

html.theme-apple-minimal #page-article .article-callout--blue {
  background: #f0f7ff;
  border-color: #cce4ff;
}

html.theme-apple-minimal #page-article .article-callout--green {
  background: #f0faf4;
  border-color: #c8ebd4;
}

html.theme-apple-minimal #page-article .article-callout--pink {
  background: #fff5f5;
  border-color: #ffd4d4;
}

html.theme-apple-minimal #page-article .article-callout__icon .lucide {
  stroke: #1d1d1f;
}

html.theme-apple-minimal #page-article .article-callout__title {
  margin-bottom: 0.25rem;
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .article-callout__body {
  font-size: 15px;
  line-height: 1.65;
  color: #515154;
}

/* —— FAQ —— */
html.theme-apple-minimal #page-article .article-faq__item,
html.theme-apple-minimal #page-article .blog-article-body details {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}

html.theme-apple-minimal #page-article .article-faq__q,
html.theme-apple-minimal #page-article .blog-article-body summary {
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .article-faq__q::before,
html.theme-apple-minimal #page-article .blog-article-body summary::before {
  color: #86868b;
}

html.theme-apple-minimal #page-article .article-faq__a {
  color: #515154;
}

/* —— Mac promo block —— */
html.theme-apple-minimal #page-article .article-mac-promo {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: #1d1d1f;
  border: none;
  box-shadow: none;
}

html.theme-apple-minimal #page-article .article-mac-promo h2 {
  margin-top: 0;
  color: #fff;
  border: none;
}

html.theme-apple-minimal #page-article .article-mac-promo p {
  margin: 0 0 0.85em;
  color: rgba(255, 255, 255, 0.78);
}

html.theme-apple-minimal #page-article .article-mac-promo p:last-child {
  margin-bottom: 0;
}

html.theme-apple-minimal #page-article .article-mac-promo strong {
  color: #fff;
}

html.theme-apple-minimal #page-article .article-cta-link {
  color: #2997ff !important;
  border-bottom-color: rgba(41, 151, 255, 0.4) !important;
  font-weight: 600 !important;
}

html.theme-apple-minimal #page-article .article-cta-link:hover {
  color: #64b5ff !important;
}

/* —— End CTA —— */
html.theme-apple-minimal #page-article .ar-end-cta {
  margin-top: 3rem;
}

html.theme-apple-minimal #page-article .blog-article-promo.ar-end-cta {
  padding: 2.5rem 1.75rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e5e5ea;
  text-align: center;
}

html.theme-apple-minimal #page-article .blog-article-promo__deco,
html.theme-apple-minimal #page-article .blog-article-promo__tag {
  display: none;
}

html.theme-apple-minimal #page-article .blog-article-promo__headline {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-article .blog-article-promo__sub {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.6;
  color: #86868b;
}

html.theme-apple-minimal #page-article .ar-end-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

html.theme-apple-minimal #page-article .ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1.35rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

html.theme-apple-minimal #page-article .ar-btn--primary {
  color: #fff;
  background: #1d1d1f;
}

html.theme-apple-minimal #page-article .ar-btn--primary:hover {
  background: #333;
  color: #fff;
}

html.theme-apple-minimal #page-article .ar-btn--secondary {
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
}

html.theme-apple-minimal #page-article .ar-btn--secondary:hover {
  background: #ebebed;
  color: #1d1d1f;
}

@media (max-width: 600px) {
  html.theme-apple-minimal #page-article .article-stats-row {
    grid-template-columns: 1fr;
  }
}

/* —— Floating offer ribbon (Apple minimal) —— */
html.theme-apple-minimal .ar-offer-ribbon {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 36px;
  padding: 14px 9px 14px 11px;
  border-radius: 14px 0 0 14px;
  color: #fff;
  text-decoration: none;
  background: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-right: none;
  box-shadow: -6px 8px 28px rgba(0, 0, 0, 0.1), -1px 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-50%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

html.theme-apple-minimal .ar-offer-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #2997ff;
}

html.theme-apple-minimal .ar-offer-ribbon__pct {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #2997ff;
}

html.theme-apple-minimal .ar-offer-ribbon__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

html.theme-apple-minimal .ar-offer-ribbon:hover {
  transform: translateY(-50%) translateX(-3px);
  background: #333336;
  box-shadow: -8px 10px 32px rgba(0, 0, 0, 0.14), -2px 3px 8px rgba(0, 0, 0, 0.07);
}

html.theme-apple-minimal .ar-offer-ribbon:active {
  transform: translateY(-50%) translateX(-1px);
  background: #1d1d1f;
}

html.theme-apple-minimal .ar-offer-ribbon:focus-visible {
  outline: 3px solid rgba(41, 151, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  html.theme-apple-minimal .ar-offer-ribbon {
    width: 32px;
    padding: 12px 7px 12px 9px;
    border-radius: 12px 0 0 12px;
  }

  html.theme-apple-minimal .ar-offer-ribbon__pct {
    font-size: 13px;
  }

  html.theme-apple-minimal .ar-offer-ribbon__text {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* Hide legacy pearl layout remnants if any */
html.theme-apple-minimal .blog-offer-fab {
  display: none !important;
}
