/* Scoped editorial hierarchy for /blog. No global application styles. */
.blog-editorial-section {
  --blog-blue: #60a5fa;
  --blog-blue-strong: #3b82f6;
  --blog-line: rgba(255, 255, 255, 0.09);
  --blog-muted: rgba(255, 255, 255, 0.58);
}

.blog-editorial-hero {
  position: relative;
  margin-bottom: 2rem !important;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 1.75rem;
  padding: 2.75rem 3rem;
  text-align: left !important;
  background:
    radial-gradient(circle at 85% 22%, rgba(59, 130, 246, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.93), rgba(8, 12, 20, 0.78));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
}

.blog-editorial-hero::after {
  content: "方法论  ·  真实证据  ·  可执行增长";
  position: absolute;
  right: 3rem;
  bottom: 2.8rem;
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-editorial-hero > div,
.blog-editorial-hero > h1,
.blog-editorial-hero > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.blog-editorial-hero > h1 {
  max-width: 32rem;
  font-size: clamp(2.5rem, 6vw, 4.35rem) !important;
  line-height: 1.02 !important;
}

.blog-editorial-hero > p {
  max-width: 34rem !important;
  font-size: 0.95rem !important;
  line-height: 1.85 !important;
}

.blog-editorial-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.6rem;
}

.blog-path-card {
  position: relative;
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.blog-path-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.blog-path-card small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.blog-path-card strong {
  max-width: 12rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-path-card span {
  color: var(--blog-blue);
  font-size: 0.74rem;
}

.blog-editorial-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.55rem 1rem;
  margin: 0.2rem 0 1.25rem;
  border: 1px solid var(--blog-line);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
}

.blog-editorial-search > label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.blog-search-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.blog-search-icon {
  position: absolute;
  left: 0.9rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 1.25rem;
  pointer-events: none;
}

.blog-search-field input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.7rem 4.4rem 0.7rem 2.7rem;
  outline: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(4, 8, 15, 0.58);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.blog-search-field input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.blog-search-field input:focus {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(8, 15, 28, 0.86);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}

.blog-search-field input::selection {
  color: #f8fafc;
  background: #2563eb;
}

.blog-search-clear {
  position: absolute;
  right: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: rgba(147, 197, 253, 0.92);
  background: rgba(59, 130, 246, 0.12);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.blog-search-clear:hover,
.blog-search-clear:focus-visible {
  color: white;
  background: rgba(59, 130, 246, 0.24);
}

.blog-search-hint {
  max-width: 22rem;
  color: var(--blog-muted);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: right;
}

.blog-search-empty {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px dashed rgba(96, 165, 250, 0.26);
  border-radius: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(59, 130, 246, 0.035);
  text-align: center;
}

.blog-search-empty[hidden] {
  display: none !important;
}

.blog-search-empty strong {
  font-size: 1rem;
}

.blog-search-empty span {
  max-width: 28rem;
  color: var(--blog-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.blog-category-bar {
  justify-content: flex-start !important;
  margin-bottom: 0.65rem !important;
}

.blog-category-bar button {
  min-height: 2.2rem;
  white-space: nowrap;
}

.blog-category-extra {
  display: none !important;
}

.blog-categories-expanded .blog-category-extra {
  display: inline-flex !important;
}

.blog-category-toggle {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.8rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: rgba(147, 197, 253, 0.9);
  background: rgba(59, 130, 246, 0.07);
  font-size: 0.75rem;
  cursor: pointer;
}

.blog-category-toggle:hover {
  border-color: rgba(96, 165, 250, 0.5);
}

.blog-editorial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0 1.15rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-editorial-heading strong {
  display: block;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.blog-editorial-heading span {
  color: var(--blog-muted);
  font-size: 0.78rem;
}

.blog-editorial-grid {
  gap: 1.15rem !important;
}

.blog-editorial-grid > a {
  position: relative;
  min-height: 14.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: none;
}

.blog-editorial-grid > a:hover {
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.blog-editorial-grid > a h3 {
  letter-spacing: -0.015em;
}

.blog-featured-card {
  grid-column: span 2 / span 2;
  min-height: 21rem !important;
  isolation: isolate;
  border-color: rgba(96, 165, 250, 0.32) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.27), transparent 33%),
    linear-gradient(138deg, rgba(25, 44, 76, 0.86), rgba(9, 14, 24, 0.9)) !important;
}

.blog-featured-card::after {
  content: "01";
  position: absolute;
  right: 1.6rem;
  bottom: -1.8rem;
  z-index: -1;
  color: rgba(255, 255, 255, 0.045);
  font-family: ui-serif, Georgia, serif;
  font-size: 10rem;
  line-height: 1;
}

.blog-featured-card > div {
  padding: 2rem !important;
}

.blog-featured-card > div::before {
  content: "本周精选 · 从第一性原理开始";
  display: block;
  margin-bottom: 1.5rem;
  color: rgba(147, 197, 253, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.blog-featured-card h3 {
  max-width: 34rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  line-height: 1.18 !important;
  -webkit-line-clamp: 3 !important;
}

.blog-featured-card p {
  max-width: 35rem;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  -webkit-line-clamp: 4 !important;
}

.blog-secondary-card {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.8), rgba(10, 15, 25, 0.86)) !important;
}

.blog-priority-card::before {
  content: "深度阅读";
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: rgba(147, 197, 253, 0.75);
  background: rgba(59, 130, 246, 0.07);
  font-size: 0.62rem;
}

.blog-page-hidden {
  display: none !important;
}

.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.blog-pager button {
  min-width: 5.6rem;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  cursor: pointer;
}

.blog-pager button:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.42);
  color: white;
}

.blog-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.blog-pager span {
  min-width: 5rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .blog-editorial-hero {
    padding: 2rem;
  }

  .blog-editorial-hero::after {
    position: static;
    display: block;
    margin-top: 1.5rem;
  }

  .blog-editorial-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .blog-editorial-hero {
    margin-bottom: 1.25rem !important;
    border-radius: 1.25rem;
    padding: 1.5rem 1.2rem;
  }

  .blog-editorial-hero > h1 {
    font-size: 2.45rem !important;
  }

  .blog-editorial-paths {
    display: flex;
    margin-right: -1.5rem;
    overflow-x: auto;
    padding-right: 1.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .blog-editorial-paths::-webkit-scrollbar {
    display: none;
  }

  .blog-path-card {
    min-width: 13.25rem;
  }

  .blog-category-bar {
    gap: 0.45rem !important;
  }

  .blog-editorial-search {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .blog-search-hint {
    max-width: none;
    text-align: left;
  }

  .blog-editorial-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .blog-featured-card {
    grid-column: span 1 / span 1;
    min-height: 22rem !important;
  }

  .blog-featured-card > div {
    padding: 1.5rem !important;
  }

  .blog-featured-card h3 {
    font-size: 1.75rem !important;
  }

  .blog-priority-card::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-path-card,
  .blog-editorial-grid > a,
  .blog-pager button {
    transition: none !important;
  }

  .blog-path-card:hover,
  .blog-editorial-grid > a:hover {
    transform: none !important;
  }
}
