/*
 * Jinian Visual Polish
 * 在现有暖纸国风基础上做克制的质感增强：更好的首屏对比、层次、微光与呼吸感。
 * 纯 CSS，静态主机可用。动效受“氛围动效”开关与 prefers-reduced-motion 控制。
 */

:root {
  --jn-polish-ink: #3d3127;
  --jn-polish-ink-soft: #6f6255;
  --jn-polish-gold: #b99261;
  --jn-polish-gold-deep: #8c6640;
  --jn-polish-line: rgba(181, 138, 84, .28);
  --jn-polish-paper: #fffdf8;
}

html,
body {
  overflow-x: clip;
}

body.jn-global-nav-ready header.wp-block-template-part,
body.jn-global-nav-ready .wp-block-navigation,
body.jn-global-nav-ready .jn-site-nav {
  display: none !important;
}

.jn-global-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 8px 24px;
  background: rgba(34, 28, 23, .94);
  border-bottom: 1px solid rgba(217, 190, 151, .18);
  box-shadow: 0 8px 24px rgba(30, 22, 16, .12);
  backdrop-filter: blur(12px);
}
body.logged-in .jn-global-nav { top: 32px; }
.jn-global-nav a {
  color: #efe4d2;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: .3px;
  transition: color .25s ease;
}
.jn-global-nav a:hover,
.jn-global-nav a:focus-visible {
  color: var(--jn-warm-gold-soft);
  outline: none;
}
.jn-global-brand {
  margin-right: auto;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
  letter-spacing: 3px;
  font-weight: 500;
}
.jn-global-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.jn-global-user {
  padding: 7px 14px;
  border: 1px solid rgba(217, 190, 151, .55);
  border-radius: 999px;
}
.jn-global-nav .jn-ambience-toggle {
  margin-left: 0;
  border-color: rgba(217, 190, 151, .35);
  background: rgba(255, 253, 248, .06);
  color: #d8c19a;
}
.jn-global-nav .jn-ambience-toggle:hover,
.jn-global-nav .jn-ambience-toggle:focus-visible {
  color: #f2e6d3;
  background: rgba(255, 253, 248, .12);
}
@media (max-width: 700px) {
  .jn-global-nav {
    gap: 12px;
    padding: 8px 12px;
  }
  .jn-global-links {
    gap: 12px;
  }
  .jn-global-nav .jn-global-secondary {
    display: none;
  }
  .jn-global-brand {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .jn-global-nav .jn-ambience-label {
    display: none;
  }
}

/* ---------------- 首屏：让文案在暖纸氛围层上清晰可读 ---------------- */
.jn-luxury .jn-home .jn-hero {
  color: var(--jn-polish-ink) !important;
}
.jn-luxury .jn-home .jn-hero h1 {
  color: var(--jn-polish-ink) !important;
  font-weight: 500;
  letter-spacing: 5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72) !important;
}
.jn-luxury .jn-home .jn-hero p {
  max-width: 640px;
  color: var(--jn-polish-ink-soft) !important;
}
.jn-luxury .jn-home .jn-hero .jn-btn-outline,
.jn-luxury .jn-home .jn-hero .jn-btn-ghost {
  color: #6d4f32;
  border-color: rgba(109, 79, 49, .62);
  background: rgba(255, 253, 248, .72);
}
.jn-luxury .jn-home .jn-hero .jn-btn-outline:hover,
.jn-luxury .jn-home .jn-hero .jn-btn-ghost:hover {
  color: #543c26;
  background: rgba(255, 253, 248, .95);
  border-color: rgba(109, 79, 49, .82);
}
.jn-luxury .jn-home .jn-hero .jn-btn-quiet,
.jn-luxury .jn-home .jn-home-cta .jn-btn-quiet {
  background: transparent !important;
  border-color: rgba(109, 79, 49, .62) !important;
  color: #6d4f32 !important;
}
.jn-luxury .jn-btn-primary,
.jn-luxury .jn-home .jn-home-cta .jn-btn-primary {
  background: #6d4f32;
  border-color: #6d4f32;
  color: #fffdf8;
}
.jn-luxury .jn-btn-primary:hover,
.jn-luxury .jn-home .jn-home-cta .jn-btn-primary:hover {
  background: #543c26;
  border-color: #543c26;
  color: #fffdf8;
}

/* ---------------- 生命树首屏 ---------------- */
.jn-luxury .jn-home .jn-hero--tree {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  padding: 64px 22px 36px;
  overflow: hidden;
  background: #061311 !important;
  color: #e7f2ed !important;
  border-bottom: 1px solid rgba(127, 240, 214, .18);
}
.jn-luxury .jn-home .jn-hero--tree::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(3, 12, 11, .7) 0%, rgba(3, 12, 11, .08) 34%, rgba(3, 12, 11, .18) 62%, rgba(3, 12, 11, .74) 100%);
}
.jn-tree-photo {
  position: absolute !important;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  background: url("jn-life-tree-hero-v2.png") center 42% / cover no-repeat;
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
}
.jn-luxury .jn-home .jn-hero--tree-image .jn-life-tree {
  display: none;
}
.jn-luxury .jn-home .jn-hero--tree-image .jn-tree-beams {
  opacity: .18;
}
.jn-luxury .jn-home .jn-hero--tree-image .jn-tree-mist {
  opacity: .55;
}
.jn-luxury .jn-home .jn-hero--tree::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .12;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.jn-tree-sky {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.jn-tree-dust {
  position: absolute;
  inset: -20%;
  opacity: .18;
  background-image:
    radial-gradient(circle, rgba(127, 240, 214, .8) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(160, 220, 205, .45) 1px, transparent 2px);
  background-size: 220px 260px, 320px 280px;
  animation: jn-tree-drift 46s linear infinite;
}
.jn-tree-halo {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 720px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(93, 225, 197, .2), transparent 68%);
  filter: blur(18px);
}
.jn-tree-beams {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  opacity: .42;
  background:
    linear-gradient(105deg, transparent 44%, rgba(132, 236, 211, .13) 47%, transparent 50%),
    linear-gradient(75deg, transparent 44%, rgba(132, 236, 211, .11) 47%, transparent 50%),
    conic-gradient(from 250deg at 50% 12%, transparent 0deg, rgba(122, 224, 199, .12) 12deg, transparent 24deg, transparent 336deg, rgba(122, 224, 199, .1) 348deg, transparent 360deg);
  filter: blur(12px);
  animation: jn-tree-beams 14s ease-in-out infinite alternate;
}
.jn-tree-mist {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 46%;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(81, 180, 161, .16), transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(65, 145, 134, .18), transparent 62%),
    linear-gradient(180deg, transparent, rgba(5, 18, 17, .86));
  filter: blur(22px);
}
.jn-tree-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(1, 8, 8, .72) 100%);
}
@keyframes jn-tree-beams {
  from { opacity: .28; transform: translateX(-50%) scale(.96); }
  to { opacity: .5; transform: translateX(-50%) scale(1.04); }
}
@keyframes jn-tree-drift {
  from { transform: translate3d(0, 2%, 0); }
  to { transform: translate3d(2%, -3%, 0); }
}
.jn-luxury .jn-home .jn-hero--tree .jn-tree-head {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.jn-tree-eyebrow {
  display: inline-block;
  margin: 0 0 16px !important;
  padding: 5px 16px;
  border: 1px solid rgba(127, 240, 214, .28);
  border-radius: 999px;
  background: rgba(3, 14, 13, .5);
  color: #a9e6d6 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px !important;
  letter-spacing: 7px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.jn-luxury .jn-home .jn-hero--tree h1 {
  margin: 0 !important;
  color: #f3f8f5 !important;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 4vw, 52px) !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  line-height: 1.45 !important;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .45) !important;
}
.jn-tree-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(360px, 2.4fr) minmax(110px, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1400px;
  margin: 14px auto 0;
}
.jn-tree-stage::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 240, 214, .5), transparent);
  z-index: -1;
}
.jn-life-tree {
  display: block;
  width: 100%;
  max-height: 380px;
  filter: drop-shadow(0 0 34px rgba(96, 220, 190, .42));
  animation: jn-tree-breathe 9s ease-in-out infinite;
}
@keyframes jn-tree-breathe {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}
.jn-tree-generated {
  transform-origin: 600px 565px;
  animation: jn-tree-sway 18s ease-in-out infinite alternate;
}
@keyframes jn-tree-sway {
  from { transform: rotate(-.35deg); }
  to { transform: rotate(.35deg); }
}
.jn-tree-years {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #80b9ae;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 1px;
}
.jn-tree-years--left { align-items: flex-end; text-align: right; padding-right: 48px; }
.jn-tree-years--right { align-items: flex-start; text-align: left; padding-left: 48px; }
.jn-tree-years span {
  position: relative;
  padding: 3px 18px;
  border-radius: 999px;
  background: rgba(3, 14, 13, .55);
  color: #a9ddd0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.jn-tree-years span::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #6fe0c4;
  box-shadow: 0 0 10px #6fe0c4;
}
.jn-tree-years--left span::before { right: 0; }
.jn-tree-years--right span::before { left: 0; }
.jn-tree-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 18px auto 0;
}
.jn-tree-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 24px;
  border: 1px solid rgba(140, 220, 200, .28);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(14, 42, 39, .86), rgba(6, 22, 21, .82));
  color: #e7f2ed;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.jn-tree-card:hover,
.jn-tree-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(127, 240, 214, .55);
  background: rgba(12, 38, 36, .82);
  outline: none;
}
.jn-tree-card-index {
  color: #76dcc3;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 2px;
}
.jn-tree-card strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}
.jn-tree-card small {
  color: #9fc4bb;
  font-size: 12px;
  line-height: 1.7;
}
.jn-tree-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.jn-tree-actions .jn-entry-chip {
  border-color: rgba(127, 240, 214, .35);
  background: rgba(8, 28, 27, .65);
  color: #bfe9dc;
}
.jn-tree-actions .jn-entry-icon {
  background: rgba(127, 240, 214, .16);
  color: #9cebd8;
}
.jn-tree-actions .jn-entry-note { color: #8fb8ae; }
.jn-tree-actions .jn-btn-outline,
.jn-tree-actions .jn-btn-quiet,
.jn-tree-actions .jn-btn-primary {
  border-color: rgba(127, 240, 214, .5) !important;
  background: rgba(8, 28, 27, .62) !important;
  color: #dff6ef !important;
}
.jn-tree-actions .jn-btn:hover {
  border-color: rgba(127, 240, 214, .8) !important;
  background: rgba(18, 48, 45, .85) !important;
}
@media (max-width: 900px) {
  .jn-tree-stage { grid-template-columns: 1fr; }
  .jn-tree-years { display: none; }
  .jn-tree-cards { grid-template-columns: 1fr; }
  .jn-luxury .jn-home .jn-hero--tree { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .jn-life-tree,
  .jn-tree-dust { animation: none !important; }
}

/* 首屏光晕：缓慢呼吸，不抢文字 */
.jn-ambience-on .jn-luxury .jn-home .jn-hero .jn-hero-halo {
  animation: jn-polish-halo 14s ease-in-out infinite;
}
@keyframes jn-polish-halo {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* 卡片与手机示意：轻微悬浮，增强空间感 */
.jn-ambience-on .jn-luxury .jn-home .jn-hero-card {
  animation: jn-polish-card-float 9s ease-in-out infinite;
}
.jn-ambience-on .jn-luxury .jn-home .jn-hero-phone {
  animation: jn-polish-phone-float 11s ease-in-out infinite;
}
@keyframes jn-polish-card-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-9px) rotate(-7deg); }
}
@keyframes jn-polish-phone-float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

/* ---------------- 内容区：标题更雅致，卡片更有纸感 ---------------- */
.jn-luxury .jn-home-section h2 {
  color: #4a3a2b;
  font-weight: 500;
}
.jn-luxury .jn-home-section h2::before {
  content: "◇";
  display: block;
  margin-bottom: 12px;
  color: rgba(185, 146, 97, .75);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0;
}
.jn-luxury .jn-home-section .jn-section-sub {
  max-width: 640px;
  margin: -22px auto 38px;
  text-align: center;
}

.jn-luxury .jn-home .jn-card {
  background: linear-gradient(145deg, #fffdf8 0%, #faf5ec 100%);
  border-color: rgba(181, 138, 84, .24);
}
.jn-luxury .jn-home .jn-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(181, 138, 84, .38);
  border-bottom: 1px solid rgba(181, 138, 84, .38);
  opacity: .55;
  pointer-events: none;
}
.jn-luxury .jn-home .jn-card-icon {
  background: radial-gradient(circle at 50% 30%, #fbf6ec, #f0e7d8);
  box-shadow: inset 0 0 0 1px rgba(181, 138, 84, .18);
  color: var(--jn-polish-gold-deep);
}

/* 步骤数字：从纯文字变成温润的小型印章 */
.jn-luxury .jn-home-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(181, 138, 84, .42);
  border-radius: 50%;
  background: rgba(255, 253, 248, .8);
  color: var(--jn-polish-gold-deep);
  font-size: 13px;
}

/* 按钮：柔和扫光，只在悬停时出现 */
.jn-luxury .jn-btn {
  position: relative;
  overflow: hidden;
}
.jn-luxury .jn-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -65%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .65s ease;
}
.jn-ambience-on .jn-luxury .jn-btn:hover::after {
  left: 125%;
}

/* 套餐卡：推荐项更沉稳，不浮夸 */
.jn-luxury .jn-home .jn-plan--featured {
  border-color: rgba(140, 102, 66, .55);
  background: linear-gradient(155deg, #fffdf8 0%, #f7eddd 100%);
}
.jn-luxury .jn-home .jn-plan-badge {
  color: var(--jn-polish-gold-deep);
}

/* ---------------- H5 纪念档案：更像一本被好好保存的旧册 ---------------- */
.jn-luxury .jn-h5 .jn-portrait {
  position: relative;
  box-shadow: 0 16px 40px rgba(80, 60, 35, .12), 0 0 0 6px rgba(255, 253, 248, .55);
}
.jn-luxury .jn-h5 .jn-portrait::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(181, 138, 84, .42);
  border-radius: 50%;
  pointer-events: none;
}
.jn-luxury .jn-h5 .jn-epitaph-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, .97), rgba(250, 244, 235, .97));
  border-left: 2px solid rgba(181, 138, 84, .42);
  box-shadow: 0 16px 36px rgba(80, 60, 35, .07), 0 2px 8px rgba(80, 60, 35, .03);
}
.jn-ambience-on .jn-luxury .jn-h5 .jn-timeline-item.is-active .jn-story-card {
  transform: translateX(3px);
}
.jn-luxury .jn-h5 .jn-story-card {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease, background .5s ease;
}

/* ---------------- 降级：关闭氛围或系统减少动态时回到静态 ---------------- */
.jn-ambience-off .jn-luxury .jn-home .jn-hero-card,
.jn-ambience-off .jn-luxury .jn-home .jn-hero-phone,
.jn-ambience-off .jn-luxury .jn-home .jn-hero-halo,
.jn-ambience-off .jn-luxury .jn-h5 .jn-timeline-item.is-active .jn-story-card {
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .jn-luxury .jn-home .jn-hero-card,
  .jn-luxury .jn-home .jn-hero-phone,
  .jn-luxury .jn-home .jn-hero-halo,
  .jn-luxury .jn-h5 .jn-timeline-item.is-active .jn-story-card,
  .jn-luxury .jn-btn::after,
  .jn-life-tree,
  .jn-tree-generated,
  .jn-tree-beams,
  .jn-tree-dust {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 700px) {
  .jn-luxury .jn-home .jn-hero h1 {
    letter-spacing: 3px;
  }
  .jn-luxury .jn-home .jn-hero-phone {
    animation: none;
  }
}

/* ---------------- NFC + 二维码双入口 ---------------- */
.jn-entry-duo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: var(--jn-polish-ink-soft);
  font-size: 13px;
}
.jn-entry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(181, 138, 84, .4);
  border-radius: 999px;
  background: rgba(255, 253, 248, .62);
  color: #6d4f32;
  letter-spacing: .4px;
}
.jn-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(181, 138, 84, .16);
  font-family: Georgia, serif;
  font-size: 11px;
  color: #8c6640;
}
.jn-entry-plus {
  color: rgba(140, 102, 66, .6);
  font-size: 16px;
}
.jn-entry-note {
  flex-basis: 100%;
  color: #8a7c6c;
  font-size: 12px;
  line-height: 1.8;
}

/* ---------------- 族谱关系线与流光 ---------------- */
.jn-luxury .jn-h5 .jn-family-canvas {
  position: relative;
}
.jn-luxury .jn-h5 .jn-family-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.jn-luxury .jn-h5 .jn-family-line {
  fill: none;
  stroke: rgba(181, 138, 84, .32);
  stroke-width: 1.2;
}
.jn-luxury .jn-h5 .jn-family-line-glow {
  fill: none;
  stroke: rgba(214, 184, 138, .85);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 8 180;
  opacity: .35;
  filter: blur(1px);
}
.jn-ambience-on .jn-luxury .jn-h5 .jn-family-line-glow {
  animation: jn-family-flow 11s linear infinite;
}
@keyframes jn-family-flow {
  from { stroke-dashoffset: 188; }
  to { stroke-dashoffset: 0; }
}
.jn-ambience-off .jn-luxury .jn-h5 .jn-family-line-glow {
  animation: none;
  opacity: .12;
}

/* ---------------- 族谱宽画布布局 ---------------- */
.jn-luxury .jn-h5 .jn-family-viewport {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,253,248,.9), rgba(247,240,230,.75)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(181,138,84,.035) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(181,138,84,.035) 39px 40px);
}
.jn-luxury .jn-h5 .jn-family-canvas {
  display: block;
  padding: 0;
  transform-origin: 0 0;
}
.jn-luxury .jn-h5 .jn-family-row {
  display: contents;
}
.jn-luxury .jn-h5 .jn-family-row::before,
.jn-luxury .jn-h5 .jn-family-row::after {
  display: none !important;
}
.jn-luxury .jn-h5 .jn-family-node {
  position: absolute;
  width: 116px;
  min-height: 88px;
  margin: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.jn-luxury .jn-h5 .jn-family-avatar {
  width: 26px;
  height: 26px;
  font-size: 13px;
}
.jn-luxury .jn-h5 .jn-family-name {
  font-size: 13px;
}
.jn-luxury .jn-h5 .jn-family-relation {
  font-size: 11px;
}
.jn-family-tools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}
.jn-family-tools button {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(181,138,84,.42);
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  color: #6d4f32;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(80,60,35,.08);
}
.jn-family-tools button:hover,
.jn-family-tools button:focus-visible {
  border-color: rgba(140,102,66,.7);
  background: #fffdf8;
  outline: none;
}

/* ---------------- NFC 写入指引 ---------------- */
.jn-luxury .jn-nfc-section {
  background: linear-gradient(180deg, #faf6ef 0%, #f4ece0 100%);
}
.jn-luxury .jn-nfc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.jn-luxury .jn-nfc-step {
  padding: 26px 22px;
}
.jn-luxury .jn-nfc-step h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.jn-luxury .jn-nfc-step p {
  color: var(--jn-polish-ink-soft);
  font-size: 13px;
  line-height: 1.9;
}
.jn-luxury .jn-nfc-check {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 22px 24px;
  border-left: 2px solid rgba(181, 138, 84, .5);
}
.jn-luxury .jn-nfc-check strong {
  display: block;
  margin-bottom: 8px;
  color: var(--jn-polish-gold-deep);
  font-family: "Songti SC", serif;
  font-weight: 500;
  letter-spacing: 2px;
}
.jn-luxury .jn-nfc-check p {
  margin: 0 0 8px;
  color: var(--jn-polish-ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------------- iOS 安全区 ---------------- */
.jn-luxury .jn-h5-header {
  padding-top: calc(42px + env(safe-area-inset-top));
  padding-left: calc(24px + env(safe-area-inset-left));
  padding-right: calc(24px + env(safe-area-inset-right));
}
.jn-luxury .jn-h5-section {
  padding-left: calc(24px + env(safe-area-inset-left));
  padding-right: calc(24px + env(safe-area-inset-right));
}
.jn-luxury .jn-h5-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
