.blog-main {
  padding: 0 0 56px;
  max-width: 100%;
  overflow-x: clip;
}

.blog-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: none;
  border-radius: 0;
  padding: 34px 0;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: none;
}

.blog-hero-content {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
}

.blog-hero::before {
  content: '';
  position: absolute;
  right: -72px;
  top: -52px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.48) 0%, rgba(191, 219, 254, 0) 72%);
}

.blog-hero h1 {
  position: relative;
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.blog-hero p {
  position: relative;
  margin: 0;
  color: rgba(219, 234, 254, 0.98);
  max-width: 620px;
  line-height: 1.7;
}

.blog-main-content {
  margin-top: 20px;
}

.blog-search-panel {
  margin-top: 0;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.blog-search {
  margin: 0;
}

.blog-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.blog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
}

.blog-search input::placeholder {
  color: #64748b;
}

.blog-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.blog-panel {
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.blog-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card-list > li {
  display: flex;
  min-width: 0;
}

.blog-card-list .blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.blog-card-cover-link {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
}

.blog-card-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: linear-gradient(140deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  overflow: hidden;
}

.blog-card-cover--p1 {
  background: linear-gradient(140deg, #3b82f6 0%, #2563eb 100%);
}

.blog-card-cover--p2 {
  background: linear-gradient(140deg, #8b5cf6 0%, #4f46e5 100%);
}

.blog-card-cover--p3 {
  background: linear-gradient(140deg, #10b981 0%, #0d9488 100%);
}

.blog-card-cover-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  opacity: 0.95;
  flex-shrink: 0;
}

.blog-card-cover-title {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.24);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-card p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  gap: 8px;
}

.blog-card-list .blog-card > footer {
  margin-top: auto;
}

.blog-card-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1e40af;
  background: #dbeafe;
  font-weight: 600;
}

.blog-read-more {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.blog-empty-state {
  border: 1px dashed #bfdbfe;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  background: #eff6ff;
}

.blog-empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1e3a8a;
}

.blog-empty-state p {
  margin: 0 0 16px;
  color: #334155;
}

.blog-cta {
  margin-top: 8px;
}

.blog-list-cta {
  margin-top: 28px;
  border-radius: 20px;
  padding: 30px 24px;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.2);
}

.blog-list-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
}

.blog-list-cta p {
  margin: 10px auto 0;
  max-width: 560px;
  color: #dbeafe;
}

.blog-list-cta .blog-cta {
  margin-top: 18px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
}

.blog-list-cta .blog-cta:hover,
.blog-list-cta .blog-cta:focus-visible {
  background: #eff6ff;
  color: #1e40af;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  outline: none;
}

.blog-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  color: #64748b;
}

.blog-pagination a,
.blog-pagination button {
  min-height: 40px;
  min-width: 96px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.blog-pagination-current {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.blog-pagination [aria-disabled='true'],
.blog-pagination button[disabled] {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  pointer-events: none;
}

.blog-pagination a:hover,
.blog-pagination button:hover,
.blog-pagination a:focus-visible,
.blog-pagination button:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.blog-article-top-banner {
  width: 100%;
  min-height: 448px;
  padding: 56px max(24px, calc((100vw - 1416px) / 2));
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(121, 157, 225, 0.2) 0%, rgba(168, 198, 234, 0.2) 100%),
    url('/blog-assets/blog-top-banner-bg-20260331.webp') center / cover no-repeat;
  display: grid;
  align-items: center;
}

.blog-article-top-banner-content {
  width: min(1416px, 100%);
  display: grid;
  gap: 12px;
}

.blog-article-top-banner-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  color: #111111;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.blog-article-top-banner-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.88);
}

.blog-article-top-banner-action .blog-cta {
  margin-top: 0;
  min-height: 52px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.blog-article-top-banner-action .blog-cta:hover,
.blog-article-top-banner-action .blog-cta:focus-visible {
  border-color: #1e40af;
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
  outline: none;
}

.blog-article-detail {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.blog-article-detail.idphoto-blog-shell {
  width: min(1536px, calc(100vw - 32px));
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 320px 1096px;
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.blog-article-layout.blog-article-layout--single {
  grid-template-columns: 1fr;
}

.blog-article-toc {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.blog-main nav[aria-label='目录'],
.blog-article-faq,
.blog-related-hot,
.blog-related-latest,
.blog-article-bottom-cta {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.blog-main nav[aria-label='目录'] h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.blog-main nav[aria-label='目录'] ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.blog-article-toc-item {
  position: relative;
  border-radius: 8px;
  padding: 2px 8px 2px 12px;
}

.blog-article-toc-item + .blog-article-toc-item {
  margin-top: 6px;
}

.blog-article-toc-item--h2 {
  padding-left: 12px;
}

.blog-article-toc-item--h3 {
  padding-left: 24px;
}

.blog-article-toc-item--h4 {
  padding-left: 36px;
}

.blog-article-toc-item--h5 {
  padding-left: 48px;
}

.blog-article-toc-item--h6 {
  padding-left: 60px;
}

.blog-article-toc-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.blog-main nav[aria-label='目录'] a.blog-article-toc-link--active {
  color: var(--brand);
  font-weight: 400;
}

.blog-main nav[aria-label='目录'] a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.blog-main nav[aria-label='目录'] a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-article-main-content {
  min-width: 0;
  margin-left: 48px;
  margin-right: 48px;
  max-width: 100%;
}

.blog-breadcrumb {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

.blog-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.blog-breadcrumb li + li::before {
  content: '/';
  color: #94a3b8;
  margin-right: 8px;
}

.blog-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb span[aria-current='page'] {
  color: var(--text-secondary);
}

.blog-article-main-content h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
}

.blog-article-meta {
  margin-top: 12px;
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #475569;
}

.blog-article-meta p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-article-author-role {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.blog-article-author-name {
  color: #0f172a;
  font-weight: 600;
}

.blog-article-engagement {
  display: inline-flex;
  gap: 8px;
}

.blog-article-description {
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 1px solid #dbe4f0;
  color: var(--text-secondary);
}

.blog-article-summary {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.blog-article-summary p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 16px;
  line-height: 24px;
}

.blog-article-content p {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 16px;
}

.blog-article-content blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid #3B82F6;
  background: #F8FAFC;
  border-radius: 0 8px 8px 0;
}

.blog-article-content blockquote p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 22px;
  color: #475569;
}

.blog-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article-content,
.blog-article-content p,
.blog-article-content li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-article-content pre {
  white-space: pre-wrap;
}

.blog-article-content h2 {
  margin: 24px 0 16px;
  font-size: 24px;
  line-height: 30px;
}

.blog-article-content h3 {
  margin: 20px 0 12px;
  font-size: 18px;
  line-height: 22px;
}

.blog-article-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 48px auto;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
}

.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.blog-article-content th,
.blog-article-content td {
  border: 1px solid #dbe4f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.blog-article-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.blog-article-faq,
.blog-related-hot,
.blog-related-latest,
.blog-article-bottom-cta {
  margin-top: 24px;
}

.blog-article-faq summary {
  line-height: 1.4;
}

.blog-article-faq p {
  line-height: 1.4;
}

.blog-article-faq details {
  padding: 10px 0;
}

.blog-related-hot h2,
.blog-related-latest h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 700;
}

.blog-related-hot-grid {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-related-hot,
.blog-related-hot-grid,
.blog-related-hot-card {
  min-width: 0;
  max-width: 100%;
}

.blog-related-hot-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #eef2f7;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.blog-related-hot-card,
.blog-related-hot-title,
.blog-related-hot-desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-related-hot-card:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  transform: translateY(-1px);
}

.blog-related-hot-title {
  font-size: 22px;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 700;
}

.blog-related-hot-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.blog-related-hot-card time {
  color: #64748b;
  font-size: 13px;
}

.blog-related-latest-grid {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}

.blog-related-latest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #dbe4f0;
  padding: 10px 0;
}

.blog-related-latest-item a {
  color: #334155;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.blog-related-latest-item a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.blog-related-latest-item time {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.blog-article-bottom-cta {
  width: 100%;
  text-align: center;
  padding: 28px 24px;
}

.blog-article-bottom-cta-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

.blog-article-bottom-cta .blog-cta {
  margin-top: 18px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
}

.blog-article-bottom-cta .blog-cta:hover,
.blog-article-bottom-cta .blog-cta:focus-visible {
  border-color: #1e40af;
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
}

@media (max-width: 1567px) {
  .blog-article-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .blog-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-list-cta {
    margin-top: 24px;
  }

  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-article-top-banner {
    min-height: 320px;
    padding: 40px 20px;
  }

  .blog-article-toc {
    position: static;
  }

  .blog-related-hot-grid,
  .blog-related-latest-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .blog-main {
    padding-top: 0;
  }

  .blog-hero {
    padding: 26px 0;
    border-radius: 0;
  }

  .blog-hero-content {
    width: min(1160px, 92vw);
  }

  .blog-main-content {
    margin-top: 16px;
  }

  .blog-search-panel {
    padding: 14px;
  }

  .blog-search input {
    min-height: 46px;
  }

  .blog-card-list {
    grid-template-columns: 1fr;
  }

  .blog-card-cover {
    padding: 12px;
    gap: 10px;
  }

  .blog-card-cover-icon {
    width: 22px;
    height: 22px;
  }

  .blog-card-cover-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .blog-list-cta {
    padding: 24px 18px;
  }

  .blog-list-cta .blog-cta {
    width: 100%;
  }

  .blog-article-detail {
    padding: 16px;
    border-radius: 14px;
  }

  .blog-article-detail.idphoto-blog-shell {
    width: min(100%, calc(100vw - 16px));
    max-width: 100%;
  }

  .blog-article-top-banner {
    min-height: 0;
    border-radius: 16px;
    padding: 18px 16px;
    gap: 14px;
  }

  .blog-article-top-banner-title {
    font-size: clamp(28px, 9vw, 34px);
  }

  .blog-article-top-banner-description {
    font-size: 14px;
  }

  .blog-article-top-banner-action .blog-cta {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .blog-breadcrumb {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .blog-article-main-content {
    margin-left: 0;
    margin-right: 0;
  }

  .blog-article-main-content h1 {
    font-size: 30px;
  }

  .blog-article-bottom-cta-title {
    font-size: 22px;
  }

  .blog-pagination {
    margin-top: 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .blog-pagination a,
  .blog-pagination button {
    min-height: 38px;
    min-width: 84px;
    padding: 0 12px;
    font-size: 13px;
  }

  .blog-pagination-current {
    width: 100%;
    min-height: 34px;
  }
}
