/* ===================================
    CSS Variables - 占位变量
   =================================== */
:root {
  /* --------------------------------------------------------
     中性默认色（占位）
     灰度系主色 + 中性背景/文字，仅作占位，
     项目启动后替换为正式品牌色。
     -------------------------------------------------------- */

  /* 主色调 */
  --color-primary: #4b5563;
  --color-primary-hover: #374151;
  --color-primary-light: #e5e7eb;
  --color-secondary: #6b7280;
  --color-secondary-hover: #4b5563;

  /* 文字颜色 */
  --color-text-heading: #111827;
  --color-text-body: #1a1a1a;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;

  /* 边框与分割 */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;

  /* 背景色 */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;
  --color-bg-card: #ffffff;

  /* 链接与交互 */
  --color-link: #4b5563;
  --color-link-hover: #374151;

  /* 覆盖层 */
  --color-overlay-dark: rgba(17, 24, 39, 0.75);

  /* 标签/徽章背景 */
  --color-tag-bg: #f3f4f6;
  --color-tag-bg-hover: #e5e7eb;

  /* 社交媒体颜色（平台官方品牌色，非项目主色，按需替换） */
  --color-social-facebook: #1877F2;
  --color-social-twitter: #1DA1F2;
  --color-social-linkedin: #0A66C2;
  --color-social-whatsapp: #25D366;
  --color-social-pinterest: #BD081C;
  --color-social-email: #4b5563;

  /* 通用白（彩色背景上的对比文字） */
  --color-white: #ffffff;

  /* 浅遮罩（Mobile 导航，区别于 Modal 的深遮罩） */
  --color-overlay-light: rgba(0, 0, 0, 0.4);

  /* 阴影色 */
  --color-shadow-sm: rgba(0, 0, 0, 0.05);
  --color-shadow-md: rgba(0, 0, 0, 0.1);
  --color-modal-shadow: rgba(17, 24, 39, 0.5);

  /* Modal 专属 */
  --color-modal-close-bg: rgba(255, 255, 255, 0.85);
  --color-modal-panel-from: #111827;
  --color-modal-panel-to: #1f2937;
  --color-modal-text-muted: rgba(255, 255, 255, 0.82);
  --color-modal-text-soft: rgba(255, 255, 255, 0.92);
  --color-modal-accent: #fbbf24;
}

/* ===================================
    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;
}

/* 正文基础排版（the_content 输出裸标签，需主题提供样式）*/
.single-post-page .post-content .post-body p {
  margin: 0 0 1.5rem;
}

.single-post-page .post-content .post-body h2,
.single-post-page .post-content .post-body h3,
.single-post-page .post-content .post-body h4 {
  color: var(--color-text-heading);
  margin: 2.75rem 0 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.single-post-page .post-content .post-body h2 { font-size: 1.75rem; }
.single-post-page .post-content .post-body h3 { font-size: 1.375rem; }
.single-post-page .post-content .post-body h4 { font-size: 1.125rem; }

.single-post-page .post-content .post-body ul,
.single-post-page .post-content .post-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

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

.single-post-page .post-content .post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 1.5rem;
}

.single-post-page .post-content .post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.single-post-page .post-content .post-body a:hover {
  color: var(--color-text-heading);
}

.single-post-page .post-content .post-body blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-tertiary);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.single-post-page .post-content .post-body blockquote p:last-child {
  margin-bottom: 0;
}

.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);
}

/* Meta: author link next to date */
.single-post-page .post-content .post-meta-separator {
  color: var(--color-text-muted);
  font-size: 13px;
}

.single-post-page .post-content .post-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-post-page .post-content .post-author-link:hover {
  color: var(--color-primary);
}

.single-post-page .post-content .post-author-link .post-author-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* Author Card (end of article) */
.single-post-page .post-content .post-author-card {
  margin-top: 2rem;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

@media (min-width: 600px) {
  .single-post-page .post-content .post-author-card {
    gap: 1.75rem;
    padding: 2.25rem;
  }
}

.single-post-page .post-content .post-author-card-avatar {
  flex-shrink: 0;
  display: block;
}

.single-post-page .post-content .post-author-card-avatar .author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 600px) {
  .single-post-page .post-content .post-author-card-avatar .author-avatar-img {
    width: 88px;
    height: 88px;
  }
}

.single-post-page .post-content .post-author-card-body {
  display: flex;
  flex-direction: column;
}

.single-post-page .post-content .post-author-card-label {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.single-post-page .post-content .post-author-card-name {
  color: var(--color-text-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-post-page .post-content .post-author-card-name:hover {
  color: var(--color-primary);
}

.single-post-page .post-content .post-author-card-role {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 0.25rem;
}

.single-post-page .post-content .post-author-card-bio {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.single-post-page .post-content .post-author-card-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.single-post-page .post-content .post-author-card-viewall svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.single-post-page .post-content .post-author-card-viewall:hover svg {
  transform: translateX(3px);
}

/* Table of Contents (auto H2 outline) */
.single-post-page .post-content .post-toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.single-post-page .post-content .post-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.single-post-page .post-content .post-toc-title {
  color: var(--color-text-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-post-page .post-content .post-toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

.single-post-page .post-content .post-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.single-post-page .post-content .post-toc[aria-expanded="false"] .post-toc-list {
  display: none;
}

.single-post-page .post-content .post-toc-list li {
  counter-increment: toc;
}

.single-post-page .post-content .post-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.single-post-page .post-content .post-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.single-post-page .post-content .post-toc-list a:hover,
.single-post-page .post-content .post-toc-list a.is-active {
  color: var(--color-primary);
  background: var(--color-bg-card);
  border-left-color: var(--color-primary);
}

.single-post-page .post-content .post-toc-list a:hover::before,
.single-post-page .post-content .post-toc-list a.is-active::before {
  color: var(--color-primary);
}

/* 锚点偏移：固定页头不遮挡滚到的标题 */
.single-post-page .post-content .post-body h2 {
  scroll-margin-top: calc(var(--header-height, 90px) + 30px);
}

/* 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;
}
.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: var(--color-modal-text-soft);
}
.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;
    }
}

/* ======================================================================
   Jusnova design system — migrated from the confirmed home, 2026-10-12.
   Legacy theme rules above remain intact for existing inner pages.
   Add jn-site to the page root to opt into shared typography/components.
   ====================================================================== */
:root {
  --jn-font-serif: "Bodoni Moda", Didot, Georgia, serif;
  --jn-font-sans: "Manrope", sans-serif;
  --jn-color-text: #1e2228;
  --jn-color-steel: #262a30;
  --jn-color-graphite: #3a4048;
  --jn-color-gold: #c6a15b;
  --jn-color-gold-start: #d0c183;
  --jn-color-gold-end: #c3a744;
  --jn-color-gold-hover: #a88c2f;
  --jn-color-bronze: #8a6f3c;
  --jn-color-bg: #fcfbf9;
  --jn-color-surface: #fff;
  --jn-color-surface-muted: #eeeeec;
  --jn-color-surface-soft: #f7f7f5;
  --jn-color-border: #e9e2d8;
  --jn-gradient-primary: linear-gradient(135deg, var(--jn-color-gold-start) 0%, var(--jn-color-gold-end) 100%);
  --jn-gradient-primary-hover: linear-gradient(135deg, var(--jn-color-gold-end) 0%, var(--jn-color-gold-hover) 100%);
  --jn-container-max: 80rem;
  --jn-container-gutter: 1.5rem;
  --jn-space-section: 6rem;
  --jn-space-section-compact: 2.5rem;
  --jn-space-heading: 3.5rem;
}
.jn-site { font-family: var(--jn-font-sans); background-color: var(--jn-color-bg); color: var(--jn-color-text); }
.jn-container { width: 100%; max-width: var(--jn-container-max); margin-left: auto; margin-right: auto; padding-left: var(--jn-container-gutter); padding-right: var(--jn-container-gutter); }
.jn-section { padding-top: var(--jn-space-section); padding-bottom: var(--jn-space-section); }
.jn-section--compact { padding-top: var(--jn-space-section-compact); padding-bottom: var(--jn-space-section-compact); }
.jn-section-heading { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; margin-bottom: var(--jn-space-heading); }
.jn-section-heading--compact { margin-bottom: 3rem; }
.jn-section-title { font-family: var(--jn-font-serif); font-size: 1.875rem; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; color: var(--jn-color-text); }
.jn-section-title--display { font-size: 2.25rem; line-height: 1.02; }
.jn-section-title--light { color: #fff; }
.jn-lead { font-size: 1.125rem; line-height: 1.75rem; color: rgba(30,34,40,.7); }
.jn-field__label { display: block; font-size: .7rem; font-weight: 700; color: rgba(30,34,40,.5); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.jn-input, .jn-select, .jn-textarea { width: 100%; padding: .75rem 0; border: 0 solid var(--jn-color-border); border-bottom-width: 2px; background: transparent; font-size: .875rem; line-height: 1.25rem; color: var(--jn-color-text); transition: color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1), text-decoration-color .15s cubic-bezier(.4,0,.2,1), fill .15s cubic-bezier(.4,0,.2,1), stroke .15s cubic-bezier(.4,0,.2,1); }
.jn-input::placeholder, .jn-textarea::placeholder { color: rgba(30,34,40,.25); }
.jn-input:focus, .jn-select:focus, .jn-textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--jn-color-gold); }
.jn-textarea { resize: none; }
@media (min-width: 640px) {
  .jn-section-title { font-size: 2.25rem; line-height: 2.5rem; }
  .jn-section-title--display { font-size: 3rem; line-height: 1; }
}
@media (min-width: 768px) {
  .jn-section-heading { flex-direction: row; align-items: center; }
  .jn-section-heading--end { align-items: flex-end; }
}
@media (min-width: 1024px) {
  .jn-section-title { font-size: 3rem; line-height: 1; }
  .jn-section-title--display { font-size: 3.75rem; line-height: 1; }
}

.jn-site .jn-button {
            position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0;
            isolation: isolate; min-width: auto; min-height: 3rem; padding-left: 1.5rem; padding-right: 1.5rem;
            border: none; border-radius: 9999px; background: var(--jn-gradient-primary); color: #FFFFFF;
            font-size: .72rem; font-weight: 800; letter-spacing: .16em; line-height: 1; text-transform: uppercase;
            white-space: nowrap; overflow: hidden; box-shadow: none;
            transition: transform .28s ease, box-shadow .28s ease;
        }
.jn-site .jn-button::before { content: ""; position: absolute; inset: 0; width: 0; background: var(--jn-gradient-primary-hover); transition: width .3s ease-in-out; z-index: 0; }
.jn-site .jn-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(138,111,60,.3); }
.jn-site .jn-button:hover::before { width: 100%; }
.jn-site .jn-button__icon { order: 2; position: relative; z-index: 2; display: none; align-items: center; justify-content: center; width: 3.5rem; min-width: 3.5rem; height: 100%; align-self: stretch; background: #FFFFFF; color: var(--jn-color-gold); pointer-events: none; border-radius: 9999px; }
.jn-site .jn-button__label { order: 1; position: relative; z-index: 2; flex: 0 1 auto; pointer-events: none; text-align: center; transition: color .3s ease; }
.jn-site .jn-button:hover .jn-button__label { color: #FFFFFF; }
.jn-site .jn-button__arrow { width: 1.15rem; height: 1.15rem; transform: rotate(-45deg); transition: transform .3s ease-in-out; }
.jn-site .jn-button:hover .jn-button__arrow { transform: rotate(0deg); }
.jn-site .jn-button--with-arrow { justify-content: space-between; gap: 1rem; padding-right: .2rem; }
.jn-site .jn-button--with-arrow .jn-button__icon { display: inline-flex; width: 2.65rem; min-width: 2.65rem; height: 2.65rem; align-self: center; }
.jn-site .jn-button--with-arrow:hover .jn-button__icon { background: var(--jn-color-bronze); color: #fff; }
.jn-site .jn-button--with-arrow .jn-button__label { flex: 1; text-align: left; }
.jn-site .jn-button--sm { min-width: auto; min-height: 2rem; padding-left: .875rem; padding-right: .875rem; font-size: .625rem; letter-spacing: .08em; }
.jn-site .jn-button--sm .jn-button__icon { width: 2.4rem; min-width: 2.4rem; }
.jn-site .jn-button--sm .jn-button__arrow { width: .95rem; height: .95rem; }
.jn-site .jn-button--full { width: 100%; }
.jn-site .jn-button--outline-light { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255,255,255,.4); }
.jn-site .jn-button--outline-light::before { background: #fff; }
.jn-site .jn-button--outline-light:hover { color: var(--jn-color-steel); border-color: #fff; }
.jn-site .jn-button--outline-light:hover .jn-button__label { color: var(--jn-color-steel); }
.jn-site .jn-button--outline-light .jn-button__icon { background: rgba(255,255,255,.14); color: #fff; }
.jn-site .jn-button--outline-light:hover .jn-button__icon { background: var(--jn-color-steel); color: #fff; }


/* Light-surface outline, as confirmed in the home hero. */
.jn-site .jn-button--outline-dark { background: #fff; color: var(--jn-color-text); box-shadow: none; border: 1.5px solid rgba(30,34,40,.45); }
.jn-site .jn-button--outline-dark::before { background: #fff; }
.jn-site .jn-button--outline-dark:hover { background: #fff; color: var(--jn-color-text); border-color: var(--jn-color-text); }
.jn-site .jn-button--outline-dark:hover .jn-button__label { color: var(--jn-color-text); }
.jn-site .jn-button--submit { min-height: 3.75rem; position: relative; justify-content: center; padding-right: .56rem; }
.jn-site .jn-button--submit .jn-button__label { position: absolute; left: 50%; transform: translateX(-50%); flex: none; text-align: center; white-space: nowrap; }
.jn-site .jn-button--submit .jn-button__icon { position: absolute; right: .56rem; }

.jn-site .jn-button:focus-visible {
  outline: 2px solid var(--jn-color-text);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 767px) {
  .jn-site .jn-button:not(.jn-button--submit) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    padding-block: .25rem;
  }
  .jn-site .jn-button:not(.jn-button--submit) .jn-button__label {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .jn-site .jn-button--with-arrow:not(.jn-button--submit) {
    gap: .75rem;
  }
}


/* Shared Jusnova content components — second migration, 2026-10-12. */
:root { --jn-radius-panel: 5px; --jn-radius-pill: 9999px; }
.jn-rounded-panel { border-radius: var(--jn-radius-panel); }
.jn-category-card, .jn-audience-card { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--jn-radius-panel); overflow: hidden; isolation: isolate; background: var(--jn-color-surface-muted); }
.jn-audience-card { aspect-ratio: 4/5; }
.jn-overlay-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.group:hover > .jn-overlay-card__image { transform: scale(1.05); }
.jn-overlay-card__veil { position: absolute; inset: 0; background-image: linear-gradient(to top,rgba(30,34,40,.72) 0%,rgba(30,34,40,.30) 48%,rgba(30,34,40,0) 100%); background-color: transparent; }
.group:hover > .jn-overlay-card__veil, .group:focus-within > .jn-overlay-card__veil { background-image: linear-gradient(to top,rgba(30,34,40,.82) 0%,rgba(30,34,40,.42) 58%,rgba(30,34,40,0) 100%); }
.jn-overlay-card__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.jn-overlay-card__title { font-family: var(--jn-font-serif); font-size: 1.125rem; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; color: #fff; }
.jn-overlay-card__reveal { display: grid; grid-template-rows: 0fr; transition: all .5s ease-in-out; }
.group:hover .jn-overlay-card__reveal, .group:focus-within .jn-overlay-card__reveal { grid-template-rows: 1fr; }
.jn-service-card { position: relative; background: #fff; border-radius: var(--jn-radius-panel); overflow: hidden; box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05); transition: box-shadow .5s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.jn-service-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.jn-service-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.jn-service-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.jn-service-card:hover .jn-service-card__image { transform: scale(1.05); }
.jn-service-card__body { padding: 2rem; display: flex; flex-direction: column; flex: 1 1 0%; }
.jn-service-card__title { font-family: var(--jn-font-serif); font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.025em; color: var(--jn-color-text); margin-bottom: .75rem; }
.jn-service-card__benefits { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.jn-service-card__benefit { padding: .375rem .75rem; border-radius: var(--jn-radius-pill); background: var(--jn-color-surface-muted); color: rgba(30,34,40,.75); font-size: .75rem; line-height: 1rem; font-weight: 600; border: 1px solid var(--jn-color-border); }
.jn-article-card { display: block; }
.jn-article-card > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0; }
.jn-article-card__media { aspect-ratio: 4/3; background: var(--jn-color-surface-muted); border-radius: var(--jn-radius-panel); overflow: hidden; isolation: isolate; }
.jn-article-card__image { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.jn-article-card:hover .jn-article-card__image { transform: scale(1.05); }
.jn-article-card__title { font-family: var(--jn-font-serif); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.025em; color: var(--jn-color-steel); transition: all .15s cubic-bezier(.4,0,.2,1); }
.jn-article-card:hover .jn-article-card__title { color: var(--jn-color-gold); }
.jn-stat { text-align: center; padding-top: 1rem; }
.jn-stat__value { display: block; font-family: var(--jn-font-serif); font-size: clamp(2rem,3.15vw,2.85rem); line-height: 2.5rem; font-weight: 700; letter-spacing: -.025em; color: #2f3135; }
.jn-stat__label { display: block; font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--jn-color-gold); font-weight: 700; margin-top: .5rem; }
.jn-eyebrow { font-size: 10px; line-height: 1.5; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: var(--jn-color-gold); }
.jn-badge-list { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; line-height: 1rem; font-weight: 600; color: rgba(30,34,40,.8); }
.jn-badge { padding: 7px 10px; border: 1px solid rgba(30,34,40,.16); border-radius: var(--jn-radius-pill); font-size: .7rem; line-height: 1.25; white-space: nowrap; }
.jn-badge--soft { background: rgba(255,255,255,.68); }
@media(min-width:768px) { .jn-stat { padding-top: 0; } }
@media(min-width:1024px) { .jn-service-card__body { padding: 2.25rem; } .jn-service-card__title { font-size: 1.875rem; line-height: 2.25rem; } .jn-stat__value { line-height: 1; } }

.jn-site .jn-footer__contacts { row-gap: 0.5rem!important; column-gap: 1rem!important; }

/* Shared navigation, preserving the confirmed cascade. */
.jn-site .jn-header .jn-nav__link { color: rgba(255,255,255,0.85); transition: color .3s ease, opacity .2s ease; }
.jn-site .jn-header .jn-nav__link:hover { color: #fff; }
.jn-site .jn-header .jn-header__logo { filter: brightness(0) invert(1); transition: filter .3s ease; }
.jn-site .jn-header.is-scrolled .jn-header__bar { background: rgba(252,251,249,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 34px rgba(30,34,40,.1); margin-top: .75rem; border-radius: 9999px; }
.jn-site .jn-header.is-scrolled .jn-nav__link { color: rgba(30,34,40,.72); }
.jn-site .jn-header.is-scrolled .jn-nav__link:hover { color: var(--jn-color-text); }
.jn-site .jn-header.is-scrolled .jn-header__logo { filter: none; }
.jn-site .jn-header.is-scrolled .jn-header__cta { background: #262A30; }
.jn-menu-item:hover .jn-menu-panel, .jn-menu-item:focus-within .jn-menu-panel { opacity: 1; pointer-events: auto; transform: translate(0,0) scale(1); }
.jn-menu-panel { opacity: 0; pointer-events: none; padding-top: 1.4rem; transform: translate(0,10px) scale(.96); transition: opacity .24s ease, transform .24s ease; }
.jn-hover-link { color: rgba(30,34,40,.62); transition: color .18s ease; }
.jn-hover-link:hover { color: var(--jn-color-gold); }
@media (max-width:1023px) { .jn-mobile-menu { display: none; } }
@media (max-width:1023px) { .jn-mobile-menu.is-open { display: block; } }
@media (max-width:1023px) {
  .jn-mobile-menu > div {
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: .75rem!important;
  }
  .jn-mobile-menu > div > div { gap: 0!important; }
  .jn-mobile-menu summary,
  .jn-mobile-menu > div > div > a:not(:last-child) {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(30,34,40,.08);
    font-size: .95rem;
  }
  .jn-mobile-menu summary { justify-content: space-between; list-style: none; }
  .jn-mobile-menu summary::-webkit-details-marker { display: none; }
  .jn-mobile-menu summary::after { content: '+'; color: #ae904e; font-size: 1.35rem; font-weight: 400; line-height: 1; }
  .jn-mobile-menu details[open] > summary::after { content: '−'; }
  .jn-mobile-menu details > div {
    margin: .25rem 0 .5rem!important;
    padding: .25rem .4rem!important;
    gap: 0!important;
    background: #f7f6f3;
    border-radius: 10px;
  }
  .jn-mobile-menu details > div > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem .8rem;
    font-size: .9rem;
    line-height: 1.3;
    border-radius: 6px;
  }
  .jn-mobile-menu a:focus-visible, .jn-mobile-menu summary:focus-visible { outline: 2px solid #b59652; outline-offset: -2px; }
  .jn-mobile-menu > div > div > a:last-child { min-height: 48px; margin-top: .75rem!important; }
}
.jn-site .jn-header .jn-nav__link { color: rgba(30,34,40,.76)!important; }
.jn-site .jn-header .jn-nav__link:hover { color: var(--jn-color-gold)!important; }
.jn-site .jn-header nav > .jn-menu-item { display: flex; align-items: center; height: 100%; }
.jn-site .jn-header nav > .jn-menu-item > .jn-nav__link,.jn-site .jn-header nav > .jn-menu-item > p.jn-nav__link,.jn-site .jn-header nav > a.jn-nav__link { display: inline-flex; align-items: center; line-height: 1.25; height: 1.25rem; }
.jn-site .jn-header .jn-header__logo { filter: none!important; }
.jn-site .jn-header .jn-header__cta { background: linear-gradient(135deg,var(--jn-color-gold-start) 0%,var(--jn-color-gold-end) 100%)!important; border-radius: 9999px; }
.jn-site .jn-header .jn-header__cta:hover { background: linear-gradient(135deg,var(--jn-color-gold-end) 0%,var(--jn-color-gold-hover) 100%)!important; }
.jn-site .jn-header .jn-header__bar { background: rgba(252,251,249,.92)!important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 34px rgba(30,34,40,.1); margin-top: .75rem; border-radius: 9999px; }
.jn-site .jn-header nav .jn-nav__link { font-size: 15px!important; }
.jn-site .jn-header .jn-header__cta { position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 8px 20px rgba(195,167,68,.2); transition: transform .28s ease,box-shadow .28s ease; }
.jn-site .jn-header .jn-header__cta::before { content: ""; position: absolute; inset: 0; width: 0; z-index: 0; border-radius: inherit; background: linear-gradient(135deg,var(--jn-color-gold-end) 0%,var(--jn-color-gold-hover) 100%); transition: width .3s ease-in-out; }
.jn-site .jn-header .jn-header__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(138,111,60,.3); }
.jn-site .jn-header .jn-header__cta:hover::before { width: 100%; }
.jn-site .jn-header .jn-header__cta > span { position: relative; z-index: 1; }

/* Service card reveal panel, reusable outside the home. */
.jn-site .jn-service-card { position: relative; }
.jn-site .jn-service-card > .jn-service-card__body > .jn-service-card__benefits { position: absolute; left: 2rem; right: 2rem; top: -3.5rem; z-index: 5; margin-bottom: 0; filter: drop-shadow(0 8px 16px rgba(30,34,40,.12)); }
.jn-site .jn-service-card > .jn-service-card__body > .jn-service-card__benefits { display: grid!important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px!important; }
.jn-site .jn-service-card > .jn-service-card__body > .jn-service-card__benefits > .jn-service-card__benefit { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
.jn-site .jn-service-card > .jn-service-card__body { position: static; }
.jn-site .jn-service-card > div:first-child::after { content: ""; position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity .35s ease; }
.jn-site .jn-service-card > div:first-child > img { position: relative; z-index: 0; }
.jn-site .jn-service-card > div:first-child > span { z-index: 3; }
.jn-site .jn-service-card .jn-service-card__benefits { display: grid!important; grid-template-columns: 1fr!important; align-content: center; justify-items: center; gap: 8px!important; position: absolute; top: 0; width: 100%; height: auto; aspect-ratio: 16/10; margin: 0!important; z-index: 4; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s ease,transform .35s ease,visibility .35s ease; filter: none!important; }
.jn-site .jn-service-card:hover > div:first-child::after,.jn-site .jn-service-card:focus-within > div:first-child::after { opacity: 1; }
.jn-site .jn-service-card:hover .jn-service-card__benefits,.jn-site .jn-service-card:focus-within .jn-service-card__benefits { opacity: 1; visibility: visible; transform: none; }
.jn-site .jn-service-card .jn-service-card__benefits > span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.jn-site .jn-service-card > div:first-child::after { background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(20,24,28,.22)); }
.jn-site .jn-service-card:hover > div:first-child > span,.jn-site .jn-service-card:focus-within > div:first-child > span { opacity: 0; visibility: hidden; }
.jn-site .jn-service-card .jn-service-card__benefits { left: 0; right: 0; padding: 0 20px; }
.jn-site .jn-service-card .jn-service-card__benefits > span { width: 100%; box-shadow: none!important; justify-self: center; }
.jn-site .jn-service-card .jn-service-card__benefit-icon { flex: 0 0 auto; }
.jn-site .jn-service-card:hover > div:first-child::after,.jn-site .jn-service-card:focus-within > div:first-child::after { background: linear-gradient(180deg,rgba(248,248,246,.66),rgba(248,248,246,.9)); backdrop-filter: blur(2px); }
.jn-site .jn-service-card .jn-service-card__benefits > span { padding: 8px 0!important; background: transparent!important; border: 0!important; border-top: 1px solid rgba(30,34,40,.16)!important; border-radius: 0!important; color: var(--jn-color-text)!important; text-shadow: none!important; line-height: 1.25; }
.jn-site .jn-service-card .jn-service-card__benefits > span:last-child { border-bottom: 1px solid rgba(30,34,40,.16)!important; }
.jn-site .jn-service-card .jn-service-card__benefit-icon { box-sizing: border-box; border: 1px solid var(--jn-color-gold-end); border-radius: 9999px; color: #b3943d; filter: none; }
.jn-site .jn-service-card > div:first-child .jn-service-card__benefits { inset: 0!important; width: 100%; height: 100%; aspect-ratio: auto; padding: 0 30px; align-content: center; place-items: center; }
.jn-site .jn-service-card .jn-service-card__benefits > span { max-width: 420px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.jn-site .jn-service-card .jn-service-card__benefit-icon { width: 28px; height: 28px; padding: 5px; }
@media(max-width:640px) { .jn-site .jn-service-card > .jn-service-card__body > .jn-service-card__benefits { left: 1.25rem; right: 1.25rem; top: -3rem; grid-template-columns: 1fr; } }
@media(max-width:640px) { .jn-site .jn-service-card > .jn-service-card__body > .jn-service-card__benefits > .jn-service-card__benefit { white-space: normal; } }
@media(max-width:640px) { .jn-site .jn-service-card .jn-service-card__benefits > span { width: 82%; max-width: calc(100% - 28px); } }

/* --------------------------------------------------------------------------
   Fade-in entrance animations (shared across pages)
   Hidden state applies only when js-anim is present; site.js reveals elements
   as they enter the viewport.
   -------------------------------------------------------------------------- */
.js-anim .jn-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js-anim .jn-fade.is-visible {
  opacity: 1;
  transform: none;
}

.js-anim .jn-fade:nth-child(2) { transition-delay: 0.04s; }
.js-anim .jn-fade:nth-child(3) { transition-delay: 0.08s; }
.js-anim .jn-fade:nth-child(4) { transition-delay: 0.12s; }
.js-anim .jn-fade:nth-child(5) { transition-delay: 0.16s; }
.js-anim .jn-fade:nth-child(6) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .jn-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Inquiry modal (site-wide, shared by every page through jn-footer)
   -------------------------------------------------------------------------- */
.jn-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.jn-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 34, 40, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.jn-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: 100%;
  max-width: 56rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(30, 34, 40, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}

.jn-modal.is-open .jn-modal__panel {
  transform: none;
}

.jn-modal__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2.25rem;
  background:
    linear-gradient(rgba(24, 29, 37, 0.80), rgba(24, 29, 37, 0.86)),
    url('/wp-content/uploads/2026/11/inquiry-modal-rings.webp') center / cover no-repeat,
    #262a30;
  color: #fff;
}

.jn-modal__aside .jn-modal__kicker {
  color: #c6a15b;
}

.jn-modal__aside .jn-modal__title {
  color: #fff;
}

.jn-modal__aside .jn-modal__note {
  color: rgba(255, 255, 255, 0.72);
}

.jn-modal__benefits {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.jn-modal__benefits li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.jn-modal__benefits li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.jn-modal__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  color: #262a30;
}

.jn-modal__benefit-icon svg,
.jn-modal__benefit-icon i {
  width: 1rem;
  height: 1rem;
}

.jn-modal__form {
  padding: 2.5rem 2.25rem;
}

.jn-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 34, 40, 0.12);
  border-radius: 9999px;
  background: #fff;
  color: #1e2228;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jn-modal__close:hover {
  background: var(--jn-color-gold, #c6a15b);
  border-color: transparent;
  color: #fff;
}

.jn-modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.jn-modal__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.jn-modal__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c6a15b;
}

.jn-modal__title {
  margin: 0;
  font-family: var(--jn-font-serif, 'Bodoni Moda', Didot, Georgia, serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1e2228;
}

.jn-modal__note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: rgba(30, 34, 40, 0.6);
}

body.jn-modal-open {
  overflow: hidden;
}
html:has(body.jn-modal-open) { overflow: hidden; }

@media (max-width: 767px) {
  .jn-modal {
    padding: 0.75rem;
  }

  .jn-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 1.5rem);
    border-radius: 14px;
  }

  .jn-modal__aside {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .jn-modal__benefits {
    display: none;
  }

  .jn-modal__form {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jn-modal,
  .jn-modal__panel {
    transition: none !important;
  }
}

/* Factory photographs and captions, shared by the OEM and DTC pages. */
.jn-production-stages { margin: 4rem auto 0; }
.jn-production-stages__title { margin: 0; text-align: center; font-family: var(--jn-font-serif); font-size: clamp(1.65rem,3vw,2.2rem); }
.jn-production-stages__intro { max-width: 42rem; margin: .75rem auto 2rem; text-align: center; line-height: 1.65; color: rgba(30,34,40,.7); }
.jn-production-stages__grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.jn-production-stages__grid li { overflow: hidden; border: 1px solid #e9e2d8; border-radius: .7rem; background: #fff; }
.jn-production-stages__grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.jn-production-stages__number { display: block; margin: .7rem .8rem .15rem; color: #a77d37; font-size: .75rem; font-weight: 700; }
.jn-production-stages__name { display: block; margin: 0 .8rem .9rem; color: #262a30; font-size: .88rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 960px) { .jn-production-stages__grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 600px) { .jn-production-stages__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
