/* ===================================
    XRLL Design Tokens v1.0
    Brand: 鑫瑞莱照明电器 / XRLL Lighting
    Palette: Blue #2957b3 + Amber #f59e0b + Dark #0f172a
   =================================== */
:root {
  /* ── Brand Primitives ── */
  --xrl-blue: #2957b3;
  --xrl-blue-hover: #1e40af;
  --xrl-blue-light: rgba(41, 87, 179, 0.08);
  --xrl-blue-glow: rgba(41, 87, 179, 0.15);
  --xrl-amber: #f59e0b;
  --xrl-amber-hover: #d97706;
  --xrl-amber-light: rgba(245, 158, 11, 0.08);
  --xrl-dark: #0f172a;
  --xrl-dark-soft: #1e293b;
  --xrl-slate: #f8fafc;
  --xrl-slate-warm: #f1f5f9;

  /* ── Deep Navy (weighty brand direction) ── */
  --xrl-navy: #0b2e4a;
  --xrl-navy-deep: #082238;
  --xrl-navy-ink: #061a2b;
  --xrl-navy-line: rgba(11, 46, 74, 0.14);

  /* ── Semantic Colors (mapped from brand) ── */
  --color-primary: var(--xrl-blue);
  --color-primary-hover: var(--xrl-blue-hover);
  --color-primary-light: var(--xrl-blue-light);
  --color-secondary: var(--xrl-dark-soft);
  --color-secondary-hover: var(--xrl-dark);

  /* ── Text ── */
  --color-text-heading: var(--xrl-dark);
  --color-text-body: #334155;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;

  /* ── Borders & Dividers ── */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* ── Backgrounds ── */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: var(--xrl-slate);
  --color-bg-tertiary: #f1f5f9;
  --color-bg-card: #ffffff;

  /* ── Links & Interactive ── */
  --color-link: var(--xrl-blue);
  --color-link-hover: var(--xrl-blue-hover);

  /* ── Overlays ── */
  --color-overlay-dark: rgba(15, 23, 42, 0.75);
  --color-overlay-light: rgba(0, 0, 0, 0.4);

  /* ── Tags / Badges ── */
  --color-tag-bg: #f1f5f9;
  --color-tag-bg-hover: #e2e8f0;

  /* ── Social Colors (platform brand) ── */
  --color-social-facebook: #1877F2;
  --color-social-twitter: #1DA1F2;
  --color-social-linkedin: #0A66C2;
  --color-social-whatsapp: #25D366;
  --color-social-pinterest: #BD081C;
  --color-social-email: #64748b;

  /* ── Utility Whites ── */
  --color-white: #ffffff;

  /* ── Shadows (tinted to dark blue) ── */
  --xrl-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --xrl-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --xrl-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --xrl-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --xrl-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --xrl-shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --xrl-shadow-inner: inset 0 2px 4px rgba(15, 23, 42, 0.04);
  --xrl-shadow-card-hover: 0 12px 28px -4px rgba(41, 87, 179, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);

  /* Legacy shadow aliases */
  --color-shadow-sm: rgba(15, 23, 42, 0.05);
  --color-shadow-md: rgba(15, 23, 42, 0.08);
  --color-modal-shadow: rgba(15, 23, 42, 0.5);

  /* ── Typography ── */
  --xrl-font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --xrl-font-display: 'Manrope', var(--xrl-font-sans);
  --xrl-font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  --xrl-tracking-tight: -0.025em;
  --xrl-tracking-normal: 0;
  --xrl-tracking-wide: 0.025em;
  --xrl-leading-tight: 1.15;
  --xrl-leading-normal: 1.6;
  --xrl-leading-relaxed: 1.75;

  /* ── Spacing Scale ── */
  --xrl-space-px: 1px;
  --xrl-space-1: 0.25rem;
  --xrl-space-2: 0.5rem;
  --xrl-space-3: 0.75rem;
  --xrl-space-4: 1rem;
  --xrl-space-5: 1.25rem;
  --xrl-space-6: 1.5rem;
  --xrl-space-8: 2rem;
  --xrl-space-10: 2.5rem;
  --xrl-space-12: 3rem;
  --xrl-space-16: 4rem;
  --xrl-space-20: 5rem;
  --xrl-space-24: 6rem;

  /* ── Radii ── */
  --xrl-radius-sm: 4px;
  --xrl-radius: 8px;
  --xrl-radius-md: 10px;
  --xrl-radius-lg: 12px;
  --xrl-radius-xl: 16px;
  --xrl-radius-2xl: 24px;
  --xrl-radius-full: 9999px;

  /* ── Transitions ── */
  --xrl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --xrl-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --xrl-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --xrl-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --xrl-duration-fast: 0.15s;
  --xrl-duration: 0.3s;
  --xrl-duration-slow: 0.5s;
  --xrl-duration-slower: 0.8s;

  /* ── Z-Index Scale ── */
  --xrl-z-dropdown: 40;
  --xrl-z-sticky: 50;
  --xrl-z-overlay: 60;
  --xrl-z-modal: 100;
  --xrl-z-toast: 200;

  /* ── Modal Legacy Tokens ── */
  --color-modal-close-bg: rgba(255, 255, 255, 0.85);
  --color-modal-panel-from: var(--xrl-dark);
  --color-modal-panel-to: var(--xrl-dark-soft);
  --color-modal-text-muted: rgba(255, 255, 255, 0.82);
  --color-modal-text-soft: rgba(255, 255, 255, 0.92);
  --color-modal-accent: var(--xrl-amber);
}

/* ===================================
    Base - 全局字体与排版
   =================================== */
body {
  font-family: var(--xrl-font-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--xrl-font-display) !important;
}
/* 深色 banner（.text-white 容器）内标题强制白色，
   覆盖 GeneratePress 注入的标题颜色，保证 banner 文字全白 */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6 {
  color: #ffffff !important;
}
.font-mono, .xrl-mono {
  font-family: var(--xrl-font-mono);
}

/* ===================================
    Layout - 布局样式（通用）
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section - 通用区块容器
   页面由多个 section 垂直堆叠而成，统一控制上下间距。
   用法：<section class="section"><div class="container">...</div></section>
   变体：
   - .section--sm / .section--lg：紧凑 / 宽松间距
   - .section--gray / .section--dark：浅灰 / 深色背景，用于交替分块
   - .section--center：内容水平居中（标题组常用）
*/
.section {
  padding: 4rem 0;
}
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 6rem 0; }

.section--gray { background: var(--color-bg-secondary); }
.section--dark { background: var(--color-text-heading); color: var(--color-white); }

.section--center .container {
  text-align: center;
}

/* 响应式：移动端收紧间距 */
@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .section--sm { padding: 1.5rem 0; }
  .section--lg { padding: 4rem 0; }
}

/* ===================================
    Animations - 滚动显示动画（通用）
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease forwards;
}

.animate-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fade-left 0.6s ease forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  animation: scale-in 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-left {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  to { opacity: 1; transform: scale(1); }
}

/* ===================================
    Buttons - 按钮样式（通用）
   =================================== */
.btn-primary {
  background: var(--color-primary, #4b5563);
  color: var(--color-white);
  padding: 1.25rem 2.5rem;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-primary-hover, #374151);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--color-primary, #4b5563);
  color: var(--color-white);
  border: 1px solid var(--color-primary, #4b5563);
  padding: 1.25rem 2.5rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===================================
    Card - 卡片样式（通用）
   =================================== */
.card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px var(--color-shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a:hover .card {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: 0 10px 15px -3px var(--color-shadow-md);
}

/* ===================================
    Breadcrumb Styles 面包屑组件（通用）
   =================================== */
.wxkn-breadcrumb-wrapper {
  padding: 0.75rem 0;
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}

.wxkn-breadcrumb-wrapper--has-container {
  padding: 0.75rem 0;
}

.wxkn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-left: 1rem;
}

.wxkn-breadcrumb-wrapper--has-container .wxkn-breadcrumb {
  margin-left: 0;
}

.wxkn-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.wxkn-breadcrumb a:hover {
  color: var(--color-primary, #4b5563);
}

.wxkn-breadcrumb a:focus-visible {
  outline: 2px solid var(--color-primary, #4b5563);
  outline-offset: 2px;
}

.wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 0.75rem;
  user-select: none;
}

.wxkn-breadcrumb-current {
  color: var(--color-text-heading);
  font-weight: 600;
}

.wxkn-breadcrumb--light .wxkn-breadcrumb a {
  color: var(--color-text-secondary);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb a:hover {
  color: var(--color-primary, #4b5563);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
}

.wxkn-breadcrumb--light .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

.wxkn-breadcrumb--compact {
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb {
  font-size: 13px;
}

.wxkn-breadcrumb--compact .wxkn-breadcrumb-separator {
  margin: 0 0.5rem;
}

.wxkn-breadcrumb--float {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  background: none;
  border: none;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-left: 0;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a {
  color: var(--color-text-secondary);
}

.wxkn-breadcrumb--float .wxkn-breadcrumb a:hover {
  color: var(--color-primary, #4b5563);
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 8px;
}

.wxkn-breadcrumb--float .wxkn-breadcrumb-current {
  color: var(--color-text-heading);
}

@media (max-width: 767px) {
  .wxkn-breadcrumb-wrapper {
    padding: 0.5rem 0;
  }

  .wxkn-breadcrumb {
    font-size: 13px;
    margin-left: 0;
  }

  .wxkn-breadcrumb-separator {
    margin: 0 0.5rem;
  }

  .wxkn-breadcrumb--float {
    bottom: 12px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb {
    font-size: 13px;
  }

  .wxkn-breadcrumb--float .wxkn-breadcrumb-separator {
    margin: 0 6px;
  }
}

/* ===================================
    Prose - 内容排版样式（通用）
   =================================== */
.prose {
  color: var(--color-text-body);
  line-height: 1.8;
}

.prose h2, .prose h3, .prose h4 {
  color: var(--color-text-heading);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-text-heading);
  margin: 2rem 0;
}

.prose img {
  margin: 2.5rem 0;
}

.prose a {
  color: var(--color-link, #4b5563);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--color-link-hover, #374151);
}

/* ===================================
    Single Product Page - 产品详情页
   =================================== */
.single-product-page {

}

.single-product-page .text-body p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-product-page .text-body h2,
.single-product-page .text-body h3,
.single-product-page .text-body h4 {
  color: var(--color-text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.single-product-page .text-body h2 { font-size: 1.75rem; }
.single-product-page .text-body h3 { font-size: 1.5rem; }
.single-product-page .text-body h4 { font-size: 1.25rem; }

.single-product-page .text-body ul,
.single-product-page .text-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
}

.single-product-page .text-body ul { list-style-type: disc; }
.single-product-page .text-body ol { list-style-type: decimal; }
.single-product-page .text-body li { margin-bottom: 0.5rem; }

.single-product-page .product-card-bento {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.single-product-page .product-card-title {
  color: var(--color-text-heading);
  transition: color 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.single-product-page .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.single-product-page .product-card-bento:hover .card-overlay {
  opacity: 1;
}

.single-product-page .card-overlay-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transform: translate(0, 12px);
  opacity: 0;
  transition: all 0.35s ease;
}

.single-product-page .product-card-bento:hover .card-overlay-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

.single-product-page .form-card-hover {
  position: relative;
  overflow: hidden;
}

.single-product-page .form-card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-secondary);
  transition: width 0.5s ease;
}

.single-product-page .form-card-hover:hover::before {
  width: 100%;
}

.single-product-page .section-product-matrix {
  background: transparent;
}

/* ===================================
    Single Post Page - 博客详情页
   =================================== */
.single-post-page {

}

.single-post-page .single-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .single-post-page .single-post-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.single-post-page .single-post-main {
  padding-top: 100px;
  background-color: var(--color-bg-secondary);
}

.single-post-page .single-post-section {
  padding-top: 2rem;
}

.single-post-page .post-content .post-featured-image {
  margin-bottom: 2rem;
}

.single-post-page .post-content .post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-post-page .post-content .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.single-post-page .post-content .post-cat-label {
  color: var(--color-primary, #4b5563);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-post-page .post-content .post-date-label {
  color: var(--color-text-muted);
  font-size: 13px;
}

.single-post-page .post-content .post-title {
  color: var(--color-text-heading);
  margin-bottom: 2rem;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

.single-post-page .post-content .post-body {
  color: var(--color-text-body);
  line-height: 1.8;
  font-size: 16px;
}

.single-post-page .post-content .post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-post-page .post-content .post-tags .tags-label {
  color: var(--color-text-heading);
  font-size: 14px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.single-post-page .post-content .post-tags a {
  color: var(--color-primary, #4b5563);
  background: var(--color-tag-bg);
  font-size: 13px;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.single-post-page .post-content .post-tags a:hover {
  background: var(--color-tag-bg-hover);
}

.single-post-page .post-content .post-share {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.single-post-page .post-content .post-share .share-label {
  color: var(--color-text-heading);
  font-size: 14px;
  font-weight: 600;
}

.single-post-page .post-content .post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.single-post-page .post-content .post-share a:hover {
  transform: translateY(-2px);
}

.single-post-page .post-content .post-share a svg {
  width: 18px;
  height: 18px;
}

.single-post-page .post-content .post-share a.share-facebook:hover {
  background-color: var(--color-social-facebook);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-twitter:hover {
  background-color: var(--color-social-twitter);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-linkedin:hover {
  background-color: var(--color-social-linkedin);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-whatsapp:hover {
  background-color: var(--color-social-whatsapp);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-pinterest:hover {
  background-color: var(--color-social-pinterest);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-email:hover {
  background-color: var(--color-social-email);
  color: var(--color-white);
}

.single-post-page .post-content .post-share a.share-copy:hover {
  background-color: var(--color-text-heading);
  color: var(--color-white);
}

/* Top Share (between title and content) */
.single-post-page .post-content .post-share-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.single-post-page .post-content .post-share-top .share-label {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-right: 0.25rem;
}

.single-post-page .post-content .post-share-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.single-post-page .post-content .post-share-top a svg {
  width: 16px;
  height: 16px;
}

.single-post-page .post-content .post-share-top a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.single-post-page .post-content .post-share-top a.share-facebook {
  background-color: var(--color-social-facebook);
}

.single-post-page .post-content .post-share-top a.share-twitter {
  background-color: #000;
}

.single-post-page .post-content .post-share-top a.share-linkedin {
  background-color: var(--color-social-linkedin);
}

.single-post-page .post-content .post-share-top a.share-whatsapp {
  background-color: var(--color-social-whatsapp);
}

.single-post-page .post-content .post-share-top a.share-pinterest {
  background-color: var(--color-social-pinterest);
}

.single-post-page .post-content .post-share-top a.share-email {
  background-color: var(--color-social-email);
}

.single-post-page .post-content .post-share-top a.share-copy {
  background-color: var(--color-text-heading);
}

/* Sidebar */
.single-post-page .post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.single-post-page .post-sidebar .sidebar-widget {
  padding: 1.5rem;
}

.single-post-page .post-sidebar .sidebar-widget h4 {
  color: var(--color-text-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.single-post-page .related-posts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-post-page .related-posts-sidebar .related-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
}

.single-post-page .related-posts-sidebar .related-item:last-child {
  border-bottom: none;
}

.single-post-page .related-posts-sidebar .related-item:hover {
  background: var(--color-border-light);
}

.single-post-page .related-posts-sidebar .related-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.single-post-page .related-posts-sidebar .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-page .related-posts-sidebar .related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.single-post-page .related-posts-sidebar .related-title {
  color: var(--color-text-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.single-post-page .related-posts-sidebar .related-date {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ===== Exit-Intent Modal ===== */
.wxkn-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wxkn-modal.is-open { opacity: 1; visibility: visible; }

.wxkn-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(4px);
}

.wxkn-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  width: min(960px, 94vw);
  max-height: 88vh;
  background: var(--color-bg-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px var(--color-modal-shadow);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.wxkn-modal.is-open .wxkn-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wxkn-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--color-modal-close-bg);
  color: var(--color-text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.wxkn-modal__close:hover { background: var(--color-white); transform: rotate(90deg); }

.wxkn-modal__left {
  background: linear-gradient(135deg, var(--color-modal-panel-from) 0%, var(--color-modal-panel-to) 100%);
  color: var(--color-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.wxkn-modal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-modal-accent);
  margin-bottom: 16px;
}
.wxkn-modal__title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--color-white);
}
.wxkn-modal__title em {
  color: var(--color-modal-accent);
  font-style: normal;
}
.wxkn-modal__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-modal-text-muted);
  margin: 0 0 24px;
}
.wxkn-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wxkn-modal__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #fff;
}
.wxkn-modal__list li::before {
  content: "✓";
  color: var(--color-modal-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.wxkn-modal__right {
  padding: 48px 44px;
  overflow-y: auto;
  background: var(--color-bg-card);
}
.wxkn-modal__form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text-heading);
}
.wxkn-modal__form-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

/* Lead form inside the modal */
.wxkn-form { display: flex; flex-direction: column; gap: 14px; }
.wxkn-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wxkn-form__field { display: flex; flex-direction: column; gap: 6px; }
.wxkn-form__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.wxkn-form__field input,
.wxkn-form__field textarea,
.wxkn-form__field select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-heading);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.wxkn-form__field input:focus,
.wxkn-form__field textarea:focus,
.wxkn-form__field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-primary);
  box-shadow: 0 0 0 3px var(--color-shadow-md);
}
.wxkn-form__field textarea { min-height: 90px; resize: vertical; }
.wxkn-form__submit {
  margin-top: 8px;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.wxkn-form__submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--color-shadow-md);
}
.wxkn-form__note {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 10px 0 0;
}

@media (max-width: 768px) {
  .wxkn-modal__dialog {
    grid-template-columns: 1fr;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .wxkn-modal__left { display: none; }
  .wxkn-modal__right { padding: 60px 22px 32px; }
  .wxkn-form__row { grid-template-columns: 1fr; }
}


.border-fine-b { border-bottom: 1px solid var(--color-border); }

/* Mobile Navigation */
.wxkn-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--color-overlay-light);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wxkn-mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.wxkn-mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: var(--color-bg-primary);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wxkn-mobile-nav.active .wxkn-mobile-nav-inner {
    transform: translateX(0);
}

.wxkn-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 80px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.wxkn-mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 32px;
}

/* Mobile Nav Groups (accordion) */
.wxkn-mobile-nav-group {
    border-bottom: 1px solid var(--color-border-light);
}

.wxkn-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-body);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wxkn-mobile-nav-toggle i {
    transition: transform 0.3s ease;
}

.wxkn-mobile-nav-toggle.active {
    background-color: var(--color-primary, #4b5563);
    color: var(--color-white);
}

.wxkn-mobile-nav-toggle.active i {
    transform: rotate(180deg);
}

.wxkn-mobile-subnav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: var(--color-bg-tertiary);
}

.wxkn-mobile-subnav.active {
    max-height: 800px;
}

.wxkn-mobile-subnav-link {
    display: block;
    padding: 16px 24px 16px 36px;
    font-size: 15px;
    color: var(--color-text-body);
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid var(--color-border-light);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wxkn-mobile-subnav-link:hover {
    color: var(--color-primary, #4b5563);
}

/* Mobile Nav Simple Links */
.wxkn-mobile-nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
}

/* Mobile CTA */
.wxkn-mobile-cta {
    display: block;
    margin: 20px 24px;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: var(--color-secondary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.wxkn-mobile-cta:hover {
    background: var(--color-secondary-hover);
}

/* ===================================
    Back to Top - 返回顶部浮动按钮
    风格对齐：cubic-bezier(0.4,0,0.2,1)、hover translateY(-2px)、
    focus 2px/2px、卡片级中性阴影、断点 767px；主色引用 --color-primary / --color-primary-hover。
   =================================== */
.gb-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    box-shadow: 0 4px 6px -1px var(--color-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gb-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gb-back-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--color-shadow-md);
}

.gb-back-to-top:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.gb-back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {
    .gb-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
    .gb-back-to-top svg {
        width: 22px;
        height: 22px;
    }
}

/* ===================================
    Phase 2: Visual Polish (Anti-Slop Base)
   =================================== */

/* Global typography baseline */
body {
  font-family: var(--xrl-font-sans);
  color: var(--color-text-body);
  line-height: var(--xrl-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Refined link styles */
a {
  color: var(--color-link);
  transition: color var(--xrl-duration) var(--xrl-ease);
}
a:hover {
  color: var(--color-link-hover);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color (brand-tinted) */
::selection {
  background: var(--xrl-blue-light);
  color: var(--xrl-dark);
}

/* Image rendering */
img {
  max-width: 100%;
  height: auto;
}

/* Refined card hover (global) */
.card {
  box-shadow: var(--xrl-shadow-sm);
  border-radius: var(--xrl-radius);
  transition: transform var(--xrl-duration) var(--xrl-ease),
              box-shadow var(--xrl-duration) var(--xrl-ease),
              border-color var(--xrl-duration) var(--xrl-ease);
}
a:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--xrl-shadow-card-hover);
  border-color: var(--color-border);
}

/* Refined button hover (brand-aware) */
.btn-primary {
  background: var(--color-primary);
  border-radius: var(--xrl-radius);
  box-shadow: var(--xrl-shadow-sm);
  transition: all var(--xrl-duration) var(--xrl-ease);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--xrl-shadow-lg);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Heading refinement */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  letter-spacing: var(--xrl-tracking-tight);
  line-height: var(--xrl-leading-tight);
}

/* ===================================
    Phase 3: Motion System (Scroll-Reveal + Counter + Micro)
   =================================== */

/* ── Scroll Reveal (IntersectionObserver driven) ── */
.xrl-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--xrl-duration-slower) var(--xrl-ease),
              transform var(--xrl-duration-slower) var(--xrl-ease);
  will-change: opacity, transform;
}
.xrl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variants */
.xrl-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--xrl-duration-slower) var(--xrl-ease),
              transform var(--xrl-duration-slower) var(--xrl-ease);
}
.xrl-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.xrl-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--xrl-duration-slower) var(--xrl-ease),
              transform var(--xrl-duration-slower) var(--xrl-ease);
}
.xrl-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.xrl-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--xrl-duration-slower) var(--xrl-ease),
              transform var(--xrl-duration-slower) var(--xrl-ease);
}
.xrl-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children (add data-delay="N" or use nth-child) */
.xrl-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--xrl-ease),
              transform 0.5s var(--xrl-ease);
}
.xrl-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.xrl-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }

/* ── Counter animation ── */
.xrl-counter {
  font-variant-numeric: tabular-nums;
}

/* ── Subtle parallax helper (translate on scroll) ── */
.xrl-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Card micro-interactions ── */
.xrl-card-hover {
  transition: transform var(--xrl-duration) var(--xrl-ease),
              box-shadow var(--xrl-duration) var(--xrl-ease);
}
.xrl-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--xrl-shadow-card-hover);
}
.xrl-card-hover:active {
  transform: translateY(-2px) scale(0.99);
}

/* ── Image zoom on card hover ── */
.xrl-img-zoom {
  overflow: hidden;
}
.xrl-img-zoom img {
  transition: transform var(--xrl-duration-slow) var(--xrl-ease);
}
.xrl-img-zoom:hover img {
  transform: scale(1.06);
}

/* ── Underline grow effect (for links) ── */
.xrl-underline-grow {
  position: relative;
  text-decoration: none;
}
.xrl-underline-grow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--xrl-blue);
  transition: width var(--xrl-duration) var(--xrl-ease);
}
.xrl-underline-grow:hover::after {
  width: 100%;
}

/* ── Fade-in for lazy-loaded images ── */
img.lozad {
  opacity: 0;
  transition: opacity 0.5s var(--xrl-ease);
}
img.lozad.is-loaded,
img.lozad[data-loaded="true"] {
  opacity: 1;
}

/* ── Reduced Motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .xrl-reveal,
  .xrl-reveal-left,
  .xrl-reveal-right,
  .xrl-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .xrl-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .xrl-parallax {
    transform: none !important;
  }
}

/* ── Smooth section transitions (between light/dark) ── */
section {
  position: relative;
}

/* ── Print styles ── */
@media print {
  .xrl-reveal,
  .xrl-reveal-left,
  .xrl-reveal-right,
  .xrl-reveal-scale,
  .xrl-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .gb-back-to-top,
  .wxkn-mobile-nav {
    display: none !important;
  }
}