/* ============================================================
   page-blog-apple.css — 博客列表 · Apple 极简覆盖层
   ============================================================ */

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

html.theme-apple-minimal #page-blog {
  padding-bottom: 2rem;
  background: #fafafa;
}

html.theme-apple-minimal #page-blog.page-main {
  padding-top: 0;
  max-width: none;
}

html.theme-apple-minimal #page-blog .container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* —— Hero —— */
html.theme-apple-minimal #page-blog .blg-ref-head {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

html.theme-apple-minimal #page-blog .pbl-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

html.theme-apple-minimal #page-blog .pbl-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-title,
html.theme-apple-minimal #page-blog .pbl-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #1d1d1f;
  background: none;
  -webkit-text-fill-color: unset;
}

html.theme-apple-minimal #page-blog .pbl-hero__accent {
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-lead,
html.theme-apple-minimal #page-blog .pbl-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.65;
  color: #86868b;
  font-weight: 400;
}

html.theme-apple-minimal #page-blog .pbl-hero__stat {
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e5ea;
  text-align: center;
  min-width: 88px;
}

html.theme-apple-minimal #page-blog .pbl-hero__stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.1;
}

html.theme-apple-minimal #page-blog .pbl-hero__stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
}

/* —— Tabs & search —— */
html.theme-apple-minimal #page-blog .blg-ref-head__toolbar {
  margin-top: 1.25rem;
}

html.theme-apple-minimal #page-blog .blg-ref-tabrail {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  box-shadow: none;
  padding: 4px;
}

html.theme-apple-minimal #page-blog .blg-ref-tab {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

html.theme-apple-minimal #page-blog .blg-ref-tab:hover:not(.blg-ref-tab--active) {
  color: #1d1d1f;
  background: #ebebed;
  border-color: transparent;
}

html.theme-apple-minimal #page-blog .blg-ref-tab--active {
  color: #1d1d1f;
  background: #fff;
  border-color: #d2d2d7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

html.theme-apple-minimal #page-blog .blg-ref-tab__ico {
  color: inherit;
}

html.theme-apple-minimal #page-blog .blg-ref-search__ico {
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-search__input {
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  box-shadow: none;
  padding: 12px 16px 12px 44px;
}

html.theme-apple-minimal #page-blog .blg-ref-search__input::placeholder {
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-search__input:focus {
  border-color: #2997ff;
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.18);
}

html.theme-apple-minimal #page-blog .blg-ref-search-empty {
  background: #fff;
  border: 1px dashed #d2d2d7;
  border-radius: 16px;
}

html.theme-apple-minimal #page-blog .blg-ref-search-empty__msg {
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-search-empty__clear {
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  cursor: pointer;
}

/* —— Magazine layout —— */
html.theme-apple-minimal #page-blog .blg-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 20px);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  html.theme-apple-minimal #page-blog .blg-magazine {
    grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

html.theme-apple-minimal #page-blog .blg-magazine[hidden] {
  display: none !important;
}

html.theme-apple-minimal #page-blog .blg-magazine > .blg-featured {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  html.theme-apple-minimal #page-blog .blg-magazine > .blg-featured {
    grid-column: auto;
  }
}

html.theme-apple-minimal #page-blog .blg-magazine > .blg-side-card {
  min-height: 0;
  height: 100%;
}

/* —— Featured card —— */
html.theme-apple-minimal #page-blog a.blog-card {
  text-decoration: none;
  color: inherit;
}

html.theme-apple-minimal #page-blog .blg-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
  html.theme-apple-minimal #page-blog .blg-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 280px;
  }
}

html.theme-apple-minimal #page-blog a.blg-featured:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

html.theme-apple-minimal #page-blog .blg-featured__shade,
html.theme-apple-minimal #page-blog .blg-featured__overlay {
  display: none;
}

html.theme-apple-minimal #page-blog .blg-featured__media {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f7;
}

@media (min-width: 768px) {
  html.theme-apple-minimal #page-blog .blg-featured__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }
}

html.theme-apple-minimal #page-blog .blg-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

html.theme-apple-minimal #page-blog a.blg-featured:hover .blg-featured__img {
  transform: scale(1.03);
}

html.theme-apple-minimal #page-blog .blg-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: #fff;
}

@media (min-width: 768px) {
  html.theme-apple-minimal #page-blog .blg-featured__body {
    padding: 2rem 2rem 2rem 1.75rem;
  }
}

html.theme-apple-minimal #page-blog .blg-featured__pill {
  display: inline-block;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 980px;
}

html.theme-apple-minimal #page-blog .blg-featured__hl {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-featured__excerpt {
  margin: 0 0 1.1rem;
  font-size: 15px;
  line-height: 1.6;
  color: #515154;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.theme-apple-minimal #page-blog .blg-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 0;
  font-size: 13px;
  font-weight: 500;
}

html.theme-apple-minimal #page-blog .blg-featured__hint {
  color: #86868b;
  font-style: normal;
}

html.theme-apple-minimal #page-blog .blg-featured__more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2997ff;
  transition: color 0.15s ease;
}

html.theme-apple-minimal #page-blog a.blg-featured:hover .blg-featured__more {
  color: #0077ed;
}

/* —— Side cards —— */
html.theme-apple-minimal #page-blog .blg-side-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

html.theme-apple-minimal #page-blog a.blg-side-card:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

html.theme-apple-minimal #page-blog .blg-side-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f7;
}

html.theme-apple-minimal #page-blog .blg-side-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

html.theme-apple-minimal #page-blog a.blg-side-card:hover .blg-side-card__img {
  transform: scale(1.03);
}

html.theme-apple-minimal #page-blog .blg-side-card__tag {
  display: inline-block;
  width: fit-content;
  margin: 1rem 1.15rem 0.5rem;
  padding: 0.22rem 0.65rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 980px;
}

html.theme-apple-minimal #page-blog .blg-side-card__hl {
  margin: 0 1.15rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-side-card__excerpt {
  margin: 0 1.15rem 0.85rem;
  font-size: 14px;
  line-height: 1.55;
  color: #515154;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.theme-apple-minimal #page-blog .blg-side-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 0.85rem 1.15rem 1.15rem;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  border-top: 1px solid #f0f0f2;
}

html.theme-apple-minimal #page-blog .blg-side-card__arrow {
  width: 16px;
  height: 16px;
  color: #2997ff;
  transition: transform 0.15s ease;
}

html.theme-apple-minimal #page-blog a.blg-side-card:hover .blg-side-card__arrow {
  transform: translateX(3px);
}

/* —— Empty state —— */
html.theme-apple-minimal #page-blog .blg-ref-diary-empty {
  margin: clamp(8px, 2vw, 16px) 0 clamp(24px, 4vw, 40px);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 32px);
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: none;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty[hidden] {
  display: none !important;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid #e5e5ea;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card span > span {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #f5f5f7;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__title {
  font-family: inherit;
  font-weight: 700;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__lead {
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card:hover {
  background: #fff;
  border-color: #d2d2d7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card > i {
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card strong {
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-diary-empty__card span > span {
  color: #86868b;
}

/* —— OpenRouter panel —— */
html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel {
  margin: clamp(8px, 2vw, 16px) 0 clamp(24px, 4vw, 40px);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 32px);
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: none;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #f5f5f7;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel__icon svg {
  width: 26px;
  height: 26px;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-note {
  margin: 0 auto 24px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: #86868b;
  text-align: center;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-note a {
  color: #2997ff;
  font-weight: 500;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel .bl-btn--primary {
  color: #fff;
  background: #1d1d1f;
}

html.theme-apple-minimal #page-blog .blg-ref-openclaw-panel .bl-btn--primary:hover {
  background: #424245;
  color: #fff;
}

/* —— CTA —— */
html.theme-apple-minimal #page-blog .blg-ref-cta.bl-closing {
  margin-top: 3rem;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  background: #1d1d1f;
  border: none;
}

html.theme-apple-minimal #page-blog .blg-ref-cta::after {
  display: none;
}

html.theme-apple-minimal #page-blog .blg-ref-cta__title {
  font-family: inherit;
  font-weight: 700;
  color: #fff;
}

html.theme-apple-minimal #page-blog .blg-ref-cta__lead {
  color: rgba(255, 255, 255, 0.72);
}

html.theme-apple-minimal #page-blog .blg-ref-cta__hints {
  color: rgba(255, 255, 255, 0.55);
}

html.theme-apple-minimal #page-blog .blg-ref-cta__hints svg {
  color: rgba(255, 255, 255, 0.55);
}

html.theme-apple-minimal #page-blog .bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1.25rem;
  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-blog .bl-btn--primary {
  color: #1d1d1f;
  background: #fff;
}

html.theme-apple-minimal #page-blog .bl-btn--primary:hover {
  background: #f5f5f7;
  color: #1d1d1f;
}

html.theme-apple-minimal #page-blog .bl-btn--secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

html.theme-apple-minimal #page-blog .bl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* —— Pager —— */
html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__btn {
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
}

html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__btn:hover:not(:disabled) {
  background: #f5f5f7;
  border-color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__goto-text,
html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__goto-total {
  color: #86868b;
}

html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__input {
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
}

html.theme-apple-minimal #page-blog .blg-ref-pager .blog-pager__input:focus {
  border-color: #2997ff;
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.18);
}

/* —— Fade-in —— */
html.theme-apple-minimal #page-blog .fade-in,
html.theme-apple-minimal #page-blog .blg-ref-main.fade-in,
html.theme-apple-minimal #page-blog .blg-magazine {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  html.theme-apple-minimal #page-blog .blg-ref-diary-empty__links {
    grid-template-columns: 1fr;
  }
}
