/* ==========================================================================
   Blog Detail Page Master Styles (Hero Banner Centering & Article Layout)
   ========================================================================== */

.flow-hero {
  position: relative !important;
  min-height: 250px !important;
  max-height: 350px !important;
  padding: 85px 20px 28px !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #08121f !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.flow-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(8, 18, 31, 0.95) 0%, rgba(8, 18, 31, 0.72) 50%, rgba(8, 18, 31, 0.45) 100%) !important;
  z-index: 1 !important;
}

.flow-hero img,
.flow-hero .hero-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  z-index: 0 !important;
}

.flow-hero-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: min(920px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.flow-hero .breadcrumb,
.flow-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  text-decoration: none !important;
}

.flow-hero .breadcrumb a:hover {
  color: #d4af37 !important;
}

.flow-hero h1,
.flow-hero-title {
  color: #ffffff !important;
  font-size: 1.65rem !important;
  line-height: 1.35 !important;
  margin: 0 auto 12px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-align: center !important;
  font-weight: 700 !important;
  max-width: 900px !important;
}

.flow-hero .article-meta-info {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem !important;
  margin-top: 10px !important;
  flex-wrap: wrap !important;
}

.flow-hero .article-meta-info i,
.flow-hero .article-meta-info svg {
  color: #d4af37 !important;
  margin-right: 4px !important;
}

.article-lead {
  max-width: min(850px, calc(100vw - 32px)) !important;
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  color: #2c3e50 !important;
  margin: 0 auto 24px !important;
  background: #f8fafc !important;
  padding: 18px 24px !important;
  border-left: 4px solid #d4af37 !important;
  border-radius: 4px !important;
}

/* Two Column Layout & Sticky Sidebar */
.article-layout.centered-layout {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 40px !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 0 20px !important;
}

.sidebar-column {
  position: sticky !important;
  top: 90px !important;
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  scrollbar-width: none !important;
}

.sidebar-column::-webkit-scrollbar {
  display: none !important;
}

.expert-profile-card {
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.profile-avatar {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  margin: 0 auto 12px !important;
  border: 3px solid #f1f5f9 !important;
  display: block !important;
}

.profile-name {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
}

.profile-title {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
}

.profile-desc {
  font-size: 0.82rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
}

.profile-contact-btn {
  display: inline-block !important;
  width: 100% !important;
  padding: 8px 0 !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
}

.profile-contact-btn:hover {
  background: #d4af37 !important;
  color: #0f172a !important;
}

.toc-card {
  padding: 18px 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.toc-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.toc-list li {
  margin-bottom: 6px !important;
}

.toc-list a {
  display: block !important;
  padding: 4px 8px !important;
  color: #475569 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: all 0.2s !important;
}

.toc-list a:hover,
.toc-list a.active {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Image Figures Centering */
.image-center {
  margin: 30px auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

.image-center img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  display: block !important;
  margin: 0 auto !important;
}

.image-caption {
  margin-top: 10px !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  text-align: center !important;
}

@media (max-width: 991px) {
  .article-layout.centered-layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar-column {
    position: static !important;
    max-height: none !important;
  }
}

/* ==========================================================================
   Master Article Card Container & Expert Profile Alignment (黄金比例卡片与防溢出)
   ========================================================================== */
.article-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 38px !important;
  box-shadow: 0 10px 28px rgba(31, 45, 61, 0.08) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.article-card * {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

.article-card h1,
.article-card h2,
.article-card h3 {
  max-width: 100% !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

.article-card h2 {
  font-size: 1.58rem !important;
  color: #1a365d !important;
  margin: 34px 0 16px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  padding-bottom: 8px !important;
  font-weight: 700 !important;
}

.article-card h3 {
  font-size: 1.2rem !important;
  color: #1a365d !important;
  margin: 22px 0 10px !important;
  font-weight: 600 !important;
}

.expert-profile-card {
  padding: 24px 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.profile-avatar {
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  margin: 0 auto 12px !important;
  display: block !important;
  border: 3px solid #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.profile-name {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1a365d !important;
  margin: 0 0 4px !important;
}

.profile-title,
.expert-profile-card .expert-title {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin: 0 0 10px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.5 !important;
  text-align: center !important;
  padding: 0 4px !important;
}

.profile-desc {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
}

.profile-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  background: #1a365d !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.profile-contact-btn:hover {
  background: #d4af37 !important;
  color: #102033 !important;
}

/* Universal Footer 20px Icon Lock for Blog Details */
footer img,
footer svg,
.footer img,
.footer svg,
.footer-contact-icon,
.footer img.footer-contact-icon,
.footer-links img,
.footer-links svg,
.site-footer img,
.site-footer svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  flex: 0 0 20px !important;
  object-fit: contain !important;
}

.footer-links li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 10px !important;
}

/* Strict Desktop Navbar: Never show mobile hamburger on desktop */
@media (min-width: 992px) {
  .mobile-nav-toggle,
  button.mobile-nav-toggle,
  .header .mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
  .flow-hero {
    min-height: 210px !important;
    max-height: none !important;
    height: auto !important;
    padding: 90px 16px 26px !important;
  }
  .flow-hero h1,
  .flow-hero-title {
    font-size: 1.35rem !important;
    margin-bottom: 10px !important;
  }
}

/* ==========================================================================
   CHINESE PUBLISHING EDITORIAL TYPOGRAPHY & TABLE CARDS (2026-11-12 出版级终极标准)
   ========================================================================== */

/* 1. 正文段落出版级排版四大参数 */
.calm-chapter-body p,
.article-body p {
  text-indent: 2em !important;
  text-align: justify !important;
  text-justify: inter-ideograph !important;
  letter-spacing: 0.015em !important;
  line-height: 1.88 !important;
}

/* 2. 全量零缩进隔离黑名单 */
h1, h2, h3, h4, h5, h6,
.calm-chapter-title, .calm-chapter-num,
.section-eyebrow, .eyebrow-accent, .eyebrow-sub,
.author-meta-strip, .author-meta-strip *,
.meta-item,
.image-caption, figcaption,
.timeline-title, .timeline-panel, .timeline-panel *,
.process-timeline, .process-timeline *,
.calm-step-item, .calm-step-title, .calm-step-desc,
table th, table td, .data-table th, .data-table td,
.table-header-bar, .table-header-bar *,
.table-note-bar, .table-note-bar *,
.table-scroll-hint, .table-scroll-hint *,
.faq-question, .faq-answer p,
.unified-faq-item, .unified-faq-item *,
.unified-action-card, .unified-action-header, .unified-action-body, .unified-action-body li,
.checklist li, ul:not(.checklist) li, ol li,
.article-quote, .article-quote p,
.formula-block,
.overview-lead-card .article-lead, .overview-lead-card .article-lead p,
.btn, .button, .read-more-link, .cap-card-link {
  text-indent: 0 !important;
}

/* 3. 优雅横向滚动条与宽表卡片支持 */
.table-container {
  -webkit-overflow-scrolling: touch;
}
.table-container::-webkit-scrollbar {
  height: 8px !important;
  background: #f1f5f9 !important;
}
.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.table-wrapper-card {
  margin: 22px 0 28px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}
.table-wrapper-card .table-container {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}
.table-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.table-title-text {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.table-scroll-hint {
  font-size: 0.78rem !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  white-space: nowrap !important;
}
.table-note-bar {
  padding: 10px 18px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  line-height: 1.55 !important;
}

/* 4. 首列吸左锁定 */
.data-table th:first-child,
.data-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 3 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06) !important;
}
.data-table th:first-child {
  background: #f1f5f9 !important;
  z-index: 4 !important;
}
.data-table tbody tr:nth-child(even) td:first-child {
  background: #fbfcfe !important;
}
.data-table tbody tr:hover td:first-child {
  background: #e0f2fe !important;
}


