/* ============================================================
   page-blog-pure.css — 博客 · 纯净体验（与首页 Pure Glass 一致）
   Layout: masthead → marquee → sticky tabs → feed grid → bottom band
   ============================================================ */

#page-blog.blg-page {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

#page-blog a.no-underline {
  text-decoration: none;
}

/* Above-fold: always visible without waiting for page-blog.js */
#page-blog .blg-masthead,
#page-blog .pure-marquee,
#page-blog .blg-tabs-bar,
#page-blog .blg-feed {
  opacity: 1;
  transform: none;
}

/* ── Masthead ─────────────────────────────────────────────── */

.blg-masthead {
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.88) 45%,
    rgba(239, 246, 255, 0.75) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.blg-masthead__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 1024px) {
  .blg-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2.5rem;
    padding: 2rem 1.5rem 2.25rem;
  }
}

.blg-masthead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.blg-masthead__kicker-ico {
  width: 1rem;
  height: 1rem;
  color: #3b82f6;
}

.blg-masthead__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.blg-masthead__desc {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  color: #64748b;
}

.blg-masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #64748b;
}

.blg-masthead__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.blg-masthead__meta svg {
  width: 0.9375rem;
  height: 0.9375rem;
  color: #94a3b8;
}

/* Search in masthead */
.blg-masthead__search.blg-pure-search {
  position: relative;
  max-width: 28rem;
}

.blg-masthead__search .blg-pure-search__ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #94a3b8;
  pointer-events: none;
}

.blg-masthead__search .blg-pure-search__ico .lucide {
  width: 1.125rem;
  height: 1.125rem;
}

.blg-masthead__search .blg-pure-search__input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.blg-masthead__search .blg-pure-search__input::placeholder {
  color: #94a3b8;
}

.blg-masthead__search .blg-pure-search__input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Quick-action tiles */
.blg-masthead__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .blg-masthead__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .blg-masthead__actions {
    width: max-content;
    min-width: 22rem;
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }
}

.blg-masthead__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blg-masthead__tile:hover {
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.blg-masthead__tile-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.blg-masthead__tile-ico svg {
  width: 1.125rem;
  height: 1.125rem;
}

.blg-masthead__tile-ico--blue { background: #eff6ff; color: #2563eb; }
.blg-masthead__tile-ico--indigo { background: #eef2ff; color: #4f46e5; }
.blg-masthead__tile-ico--emerald { background: #ecfdf5; color: #059669; }
.blg-masthead__tile-ico--violet { background: #f5f3ff; color: #7c3aed; }

.blg-masthead__tile-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.blg-masthead__tile-hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Marquee spacing override for blog */
#page-blog .pure-marquee {
  margin-bottom: 0;
}

/* ── Sticky tabs ─────────────────────────────────────────── */

.blg-tabs-bar {
  position: sticky;
  top: var(--nav-height, 4rem);
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  isolation: isolate;
}

.blg-tabs.blg-pure-chips {
  display: flex;
  gap: 0.375rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.blg-tabs::-webkit-scrollbar {
  display: none;
}

.blg-tabs__btn.blg-pure-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.blg-tabs__btn .blg-pure-chip__ico {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.blg-tabs__btn:hover {
  background: #f8fafc;
  color: #1d4ed8;
  border-color: rgba(226, 232, 240, 0.8);
}

.blg-tabs__btn:hover .blg-pure-chip__ico {
  color: #2563eb;
}

.blg-tabs__btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.blg-tabs__btn.blg-ref-tab--active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: rgba(191, 219, 254, 0.95);
  box-shadow: none;
}

.blg-tabs__btn.blg-ref-tab--active .blg-pure-chip__ico {
  color: #2563eb;
}

.blg-tabs__btn--oc.blg-ref-tab--active {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: rgba(221, 214, 254, 0.95);
}

.blg-tabs__btn--oc.blg-ref-tab--active .blg-pure-chip__ico {
  color: #7c3aed;
}

/* ── Feed grid ─────────────────────────────────────────────── */

.blg-feed {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.blg-feed__head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.blg-feed__head--oc .blg-feed__title {
  color: #0f172a;
}

.blg-feed__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.blg-feed__lead {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.blg-feed__grid.blg-pure-masonry {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blg-feed__grid > .blg-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blg-feed__grid > .blg-magazine[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .blg-feed__grid > .blg-magazine:not([hidden]) {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1rem;
  }
}

.blg-feed__grid > .blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .blg-feed__grid > .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blg-feed__grid > .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Empty state ───────────────────────────────────────────── */

.blg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.blg-feed__grid > .blg-magazine:not([hidden]) .blg-empty {
  grid-column: 1 / -1;
}

.blg-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

.blg-empty__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.blg-empty__icon--blue { background: #eff6ff; color: #2563eb; }
.blg-empty__icon--violet { background: #f5f3ff; color: #7c3aed; }

.blg-empty__title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
}

.blg-empty__desc {
  margin: 0 0 1.25rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

.blg-empty__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blg-empty__link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.blg-empty__link:hover {
  color: #1d4ed8;
}

.blg-empty__link:hover svg {
  transform: translateX(3px);
}

.blg-empty__link--oc {
  color: #7c3aed;
}

.blg-empty__link--oc:hover {
  color: #6d28d9;
}

/* ── Article cards (glass) ─────────────────────────────────── */

#page-blog .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#page-blog a.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(191, 219, 254, 0.9);
}

#page-blog .blg-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

#page-blog .blg-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-blog a.blog-card:hover .blg-featured__img {
  transform: scale(1.04);
}

#page-blog .blg-featured__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.05) 55%, transparent 100%);
  pointer-events: none;
}

#page-blog .blg-featured__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.125rem 1.125rem;
}

#page-blog .blg-featured__pill {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eff6ff;
  background: rgba(37, 99, 235, 0.75);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

#page-blog .blg-featured__hl {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

#page-blog .blg-featured__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1rem 1.125rem 1.125rem;
}

#page-blog .blg-featured__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

#page-blog .blg-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.75rem;
  color: #94a3b8;
}

#page-blog .blg-featured__author {
  font-weight: 600;
  color: #64748b;
}

#page-blog .blg-glow-card::before,
#page-blog .blg-glow-card::after {
  display: none;
}

/* Side cards */
#page-blog .blg-side-card {
  padding: 0;
}

#page-blog .blg-side-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

#page-blog .blg-side-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-blog a.blg-side-card:hover .blg-side-card__img {
  transform: scale(1.04);
}

#page-blog .blg-side-card__tag {
  display: inline-block;
  margin: 0.875rem 1.125rem 0.5rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 9999px;
}

#page-blog .blg-side-card__hl {
  margin: 0 0 0.5rem;
  padding: 0 1.125rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  transition: color 0.2s ease;
}

#page-blog a.blg-side-card:hover .blg-side-card__hl {
  color: #2563eb;
}

#page-blog .blg-side-card__excerpt {
  margin: 0;
  padding: 0 1.125rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

#page-blog .blg-side-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.75rem 1.125rem 1.125rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.75rem;
  color: #94a3b8;
}

#page-blog .blg-side-card__arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #cbd5e1;
  transition: transform 0.2s ease, color 0.2s ease;
}

#page-blog a.blg-side-card:hover .blg-side-card__arrow {
  color: #3b82f6;
  transform: translateX(3px);
}

/* ── Search empty & pager ──────────────────────────────────── */

.blg-feed__search-empty.blg-pure-search-empty {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed #cbd5e1;
  backdrop-filter: blur(8px);
}

.blg-pure-search-empty__msg {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: #64748b;
}

.blg-pure-search-empty__clear {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blg-pure-search-empty__clear:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.blg-feed__pager.blg-pure-pager {
  margin-top: 1.5rem;
}

.blg-feed__pager .blog-pager__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(12px);
}

.blg-pure-pager .blog-pager__btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blg-pure-pager .blog-pager__btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.blg-pure-pager .blog-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blg-pure-pager .blog-pager__goto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.blg-pure-pager .blog-pager__input {
  width: 3.5rem;
  padding: 0.375rem 0.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.8125rem;
}

.blg-pure-pager .blog-pager__input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ── Bottom band (matches help center) ─────────────────────── */

.blg-band {
  width: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #4338ca 55%, #6d28d9 100%);
  color: #fff;
}

.blg-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}

@media (min-width: 768px) {
  .blg-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
}

.blg-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.blg-band__desc {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.blg-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .blg-band__actions {
    flex-direction: row;
    align-items: center;
  }
}

.blg-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blg-band__btn svg {
  width: 1rem;
  height: 1rem;
}

.blg-band__btn--primary {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.blg-band__btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.blg-band__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.blg-band__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .blg-masthead__tile:hover,
  .blg-band__btn--primary:hover,
  #page-blog a.blog-card:hover {
    transform: none;
  }
}
