/* ==========================================================================
   站内展开层 Info Sheet · 作用域 #jhSheet
   --------------------------------------------------------------------------
   用途：联盟企业墙「待入驻方向」等可点框架，点击后在官网内部展开内容，
        不跳转独立网页、不新开窗口。
   特点：作用域内自带主站同值 token，绝不污染主站样式；
        ≤767 自动转为整屏，避免小屏面板被压缩。
   ========================================================================== */

#jhSheet {
  --js-gold: #C9A45C;
  --js-gold-ink: #0B0E14;
  --js-text: #161B22;
  --js-muted: #616B78;
  --js-muted-2: #8B939F;
  --js-line: rgba(22, 27, 34, .10);
  --js-bg: #FFFFFF;
  --js-surface: #F4F6F9;
  --js-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --js-ease: cubic-bezier(.22, .61, .36, 1);

  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  font-family: var(--js-font);
  color: var(--js-text);
  -webkit-font-smoothing: antialiased;
}

#jhSheet.is-open {
  display: block;
}

/* ---------- 遮罩 ---------- */
#jhSheet .js__mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, .58);
  animation: jsFade .22s var(--js-ease) both;
}

/* ---------- 面板 ---------- */
/* 与站内已有的板块弹层 .sheet 保持同一套视觉语言：
   同一个遮罩色、同一个圆角、同一个关闭键规格，避免出现「两个弹层长得不一样」。 */
#jhSheet .js__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 48px));
  max-height: min(86vh, 880px);
  display: flex;
  flex-direction: column;
  background: var(--js-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(11, 14, 20, .28);
  animation: jsPop .28s var(--js-ease) both;
}

/* ---------- 顶部条：返回 + 关闭 ---------- */
#jhSheet .js__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--js-line);
  background: var(--js-bg);
}

#jhSheet .js__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--js-line);
  border-radius: 18px;
  background: transparent;
  color: var(--js-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s var(--js-ease), color .2s var(--js-ease), background .2s var(--js-ease);
}

#jhSheet .js__back:hover {
  border-color: var(--js-gold);
  color: var(--js-gold);
}

#jhSheet .js__back i {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  color: var(--js-gold);
}

#jhSheet .js__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--js-surface);
  color: var(--js-muted);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--js-ease), color .2s var(--js-ease);
}

#jhSheet .js__close:hover {
  background: var(--js-gold);
  color: var(--js-gold-ink);
}

/* ---------- 内容区 ---------- */
#jhSheet .js__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 38px 44px 34px;
}

#jhSheet .js__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--js-gold);
}

#jhSheet .js__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
}

#jhSheet .js__role {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--js-muted-2);
  letter-spacing: .04em;
}

#jhSheet .js__rule {
  width: 52px;
  height: 2px;
  margin: 22px 0 24px;
  background: var(--js-gold);
  border: 0;
}

#jhSheet .js__lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--js-muted);
}

#jhSheet .js__lead:last-of-type {
  margin-bottom: 0;
}

#jhSheet .js__list {
  margin: 26px 0 0;
  padding: 22px 24px;
  list-style: none;
  background: var(--js-surface);
  border-radius: 12px;
}

#jhSheet .js__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--js-text);
}

#jhSheet .js__list li + li {
  margin-top: 10px;
}

#jhSheet .js__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--js-gold);
}

#jhSheet .js__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 44px 24px;
  border-top: 1px solid var(--js-line);
  background: var(--js-bg);
}

#jhSheet .js__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 23px;
  background: var(--js-gold);
  color: var(--js-gold-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--js-ease), box-shadow .2s var(--js-ease);
}

#jhSheet .js__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(201, 164, 92, .34);
}

#jhSheet .js__hint {
  margin: 0;
  font-size: 13px;
  color: var(--js-muted-2);
  line-height: 1.6;
}

/* ---------- 动效 ---------- */
@keyframes jsFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes jsPop {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---------- 小屏：整屏化 ---------- */
@media (max-width: 767px) {
  #jhSheet .js__panel {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
    animation: jsFade .2s var(--js-ease) both;
  }

  #jhSheet .js__bar {
    height: 54px;
    padding: 0 12px 0 14px;
  }

  #jhSheet .js__back {
    height: 34px;
    font-size: 13.5px;
  }

  #jhSheet .js__body {
    padding: 26px 20px 22px;
  }

  #jhSheet .js__title {
    font-size: 24px;
  }

  #jhSheet .js__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  #jhSheet .js__list {
    padding: 18px 18px 18px 20px;
  }

  #jhSheet .js__foot {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
  }

  #jhSheet .js__cta {
    height: 44px;
    flex: 1 1 auto;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  #jhSheet .js__mask,
  #jhSheet .js__panel {
    animation: none;
  }

  #jhSheet .js__cta:hover {
    transform: none;
  }
}
