/* ========================================
   仁源官网自定义工具样式
   只承载 Tailwind 无法直接表达的部分
   ======================================== */

/* 滚动条对称：避免 1440 视口下因右侧滚动条占位导致内容偏左 */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  color: #0A0A0F;
  -webkit-font-smoothing: antialiased;
}

.font-jp {
  font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
}

/* Hero 渐变光晕 */
.hero-glow {
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(99, 91, 255, 0.22) 0%, transparent 60%),
    radial-gradient(40% 40% at 20% 90%, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
}

/* Hero 网格底纹 */
.grid-bg {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* Sticky nav 滚动阴影 */
.nav-shadow {
  transition: box-shadow .25s, border-color .25s;
}
.nav-shadow.scrolled {
  border-color: #E2E8F0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

/* 卡片 hover */
.card-h {
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card-h:hover {
  border-color: #635BFF;
  box-shadow: 0 18px 40px -16px rgba(99, 91, 255, 0.30);
  transform: translateY(-2px);
}

/* 渐变文字 */
.grad-text {
  background: linear-gradient(90deg, #0A0A0F 0%, #4F46E5 60%, #635BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 折叠面板（FAQ 用） */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chev { transform: rotate(180deg); }
.faq-chev { transition: transform .2s; }

/* Scroll top 按钮 */
.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}
