/* guides 页面统一博客壳层样式（排除 ai-detection-success 与 blog 跳转页）。 */

:root {
  --guide-shell-bg: #f7f7fb;
  --guide-shell-card: #ffffff;
  --guide-shell-text: #332f58;
  --guide-shell-muted: #6b6786;
  --guide-shell-brand: #5c55cc;
  --guide-shell-border: rgba(92, 85, 204, 0.12);
  --guide-shell-shadow: 0 18px 36px rgba(107, 93, 198, 0.12);
  --guide-shell-offset: 112px;
}

body.guide-blog-shell-unified {
  margin: 0;
  background: var(--guide-shell-bg);
  color: var(--guide-shell-text);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.guide-blog-shell-unified a {
  color: inherit;
  text-decoration: none;
}

body.guide-blog-shell-unified a:hover {
  text-decoration: none;
}

body.guide-blog-shell-unified .guide-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  margin: 0;
  padding: 18px 20px 14px;
  background: rgba(247, 247, 251, 0.92);
  border-bottom: 1px solid rgba(92, 85, 204, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.guide-blog-shell-unified .guide-shell-topbar-card {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(92, 85, 204, 0.08);
  box-shadow: var(--guide-shell-shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.guide-blog-shell-unified .guide-shell-topnav {
  max-width: 1120px;
  margin: 12px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.guide-blog-shell-unified .guide-shell-topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(92, 85, 204, 0.1);
  color: #4c4790;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(107, 93, 198, 0.06);
}

body.guide-blog-shell-unified .guide-shell-topnav a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

body.guide-blog-shell-unified .guide-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--guide-shell-brand);
}

body.guide-blog-shell-unified .guide-shell-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

body.guide-blog-shell-unified .guide-shell-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b5dc6 0%, #8c6dff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 14px 28px rgba(107, 93, 198, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.guide-blog-shell-unified .guide-shell-home-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(107, 93, 198, 0.22);
}

body.guide-blog-shell-unified main.guide-shell-main,
body.guide-blog-shell-unified main[data-legal-content],
body.guide-blog-shell-unified main.container,
body.guide-blog-shell-unified main.wrapper {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.guide-blog-shell-unified .guide-shell-article {
  background: var(--guide-shell-card);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(92, 85, 204, 0.08);
  box-shadow: 0 24px 48px rgba(107, 93, 198, 0.08);
}

body.guide-blog-shell-unified .guide-shell-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 24px;
  align-items: start;
  justify-content: center;
}

body.guide-blog-shell-unified .guide-shell-content {
  min-width: 0;
}

body.guide-blog-shell-unified .guide-shell-overview {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
}

body.guide-blog-shell-unified .guide-shell-overview h1,
body.guide-blog-shell-unified .guide-shell-overview .article__title {
  margin: 0;
  color: #1f1b4b;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.guide-blog-shell-unified .guide-shell-overview p,
body.guide-blog-shell-unified .guide-shell-overview .post-card__description {
  margin: 12px 0 0;
  max-width: none;
  color: #57546f;
  line-height: 1.7;
  font-size: 1rem;
}

body.guide-blog-shell-unified .guide-shell-content h2,
body.guide-blog-shell-unified .guide-shell-content h3,
body.guide-blog-shell-unified .guide-shell-content h4 {
  color: #1f1b4b;
}

body.guide-blog-shell-unified .guide-shell-content h2[id],
body.guide-blog-shell-unified .guide-shell-content h3[id],
body.guide-blog-shell-unified .guide-shell-content h4[id],
body.guide-blog-shell-unified .guide-shell-content #overview {
  scroll-margin-top: var(--guide-shell-offset);
}

body.guide-blog-shell-unified .guide-shell-content p {
  color: #3f3a67;
}

body.guide-blog-shell-unified .guide-shell-content > section,
body.guide-blog-shell-unified .guide-shell-content > article,
body.guide-blog-shell-unified .guide-shell-content > aside,
body.guide-blog-shell-unified .guide-shell-content > div {
  margin-top: 28px;
}

body.guide-blog-shell-unified .guide-shell-content > :first-child {
  margin-top: 0;
}

body.guide-blog-shell-unified .guide-shell-aside {
  position: sticky;
  top: var(--guide-shell-offset);
}

body.guide-blog-shell-unified .blog-toc {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(107, 93, 198, 0.14);
  box-shadow: 0 10px 24px rgba(107, 93, 198, 0.08);
}

body.guide-blog-shell-unified .blog-toc__title {
  font-weight: 700;
  color: #3a3564;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

body.guide-blog-shell-unified .blog-toc__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.55;
}

body.guide-blog-shell-unified .blog-toc__item {
  margin: 6px 0;
  font-size: 0.92rem;
  color: #5b557a;
}

body.guide-blog-shell-unified .blog-toc__item a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.guide-blog-shell-unified .blog-toc__item a:hover {
  background: rgba(107, 93, 198, 0.08);
}

body.guide-blog-shell-unified .blog-toc__item--active > a {
  color: var(--guide-shell-brand);
  font-weight: 700;
}

body.guide-blog-shell-unified .blog-toc__item--active {
  position: relative;
}

body.guide-blog-shell-unified .blog-toc__item--active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.2em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8c6dff;
}

body.guide-blog-shell-unified .guide-shell-links {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.55), rgba(255, 255, 255, 0.95));
}

body.guide-blog-shell-unified .guide-shell-links__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #2f2a58;
}

body.guide-blog-shell-unified .guide-shell-links__title--sub {
  margin-top: 16px;
}

body.guide-blog-shell-unified .guide-shell-links ul {
  margin: 0;
  padding-left: 18px;
}

body.guide-blog-shell-unified .guide-shell-links li {
  margin: 8px 0;
  color: #3f3a67;
  font-size: 0.9rem;
}

body.guide-blog-shell-unified .guide-shell-links a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.guide-blog-shell-unified .guide-shell-links a:hover {
  color: #3730a3;
}

body.guide-blog-shell-unified .guide-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body.guide-blog-shell-unified .guide-hub-card {
  border: 1px solid rgba(92, 85, 204, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 12px 24px rgba(107, 93, 198, 0.08);
}

body.guide-blog-shell-unified .guide-hub-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #201c4f;
}

body.guide-blog-shell-unified .guide-hub-card p {
  margin: 0 0 12px;
  color: #57546f;
  line-height: 1.65;
}

body.guide-blog-shell-unified .guide-hub-card a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.guide-blog-shell-unified .guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

body.guide-blog-shell-unified .guide-cta-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

body.guide-blog-shell-unified .guide-cta-row .guide-cta-primary {
  background: linear-gradient(135deg, #5c55cc 0%, #8c6dff 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(107, 93, 198, 0.18);
}

body.guide-blog-shell-unified .guide-cta-row .guide-cta-secondary {
  background: #fff;
  color: #4f46e5;
  border: 1px solid rgba(92, 85, 204, 0.16);
}

body.guide-blog-shell-unified .guide-cta-row a:hover {
  text-decoration: none;
}

body.guide-blog-shell-unified .guide-toc {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.guide-blog-shell-unified .back-home {
  display: none !important;
}

body.guide-blog-shell-unified footer,
body.guide-blog-shell-unified .guide-shell-footer {
  margin: 0 auto 18px;
  width: min(1120px, calc(100% - 40px));
  color: #726f90;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  body.guide-blog-shell-unified .guide-shell-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.guide-blog-shell-unified .guide-shell-aside {
    display: none;
  }
}

@media (max-width: 640px) {
  body.guide-blog-shell-unified .guide-shell-topbar {
    padding: 14px 12px 10px;
  }

  body.guide-blog-shell-unified .guide-shell-topbar-card {
    padding: 12px;
    border-radius: 14px;
  }

  body.guide-blog-shell-unified .guide-shell-brand {
    font-size: 16px;
  }

  body.guide-blog-shell-unified .guide-shell-home-link {
    max-width: 60vw;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  body.guide-blog-shell-unified .guide-shell-topnav {
    gap: 8px;
  }

  body.guide-blog-shell-unified .guide-shell-topnav a {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  body.guide-blog-shell-unified main.guide-shell-main,
  body.guide-blog-shell-unified main[data-legal-content],
  body.guide-blog-shell-unified main.container,
  body.guide-blog-shell-unified main.wrapper {
    padding: 20px 14px 56px;
  }

  body.guide-blog-shell-unified .guide-shell-article {
    border-radius: 16px;
    padding: 18px 14px;
  }
}
