/* ==========================================================================
   JDX DIGITAL — two-screen home, transparent canvas
   No large panel behind either screen. The fixed cloud is the only background.
   Only the six directory cards are glass modules.
   ========================================================================== */

/* 页头/页脚全站统一：首页不再单独隐藏导航与 CTA（合规要求：主体信息、备案号、
   隐私政策链接与全站主导航在所有页面可达） */
.home-page .header-inner {
  grid-template-columns: 1fr auto 1fr;
}

/* First screen: no plate, no wash, no edge — content floats on the cloud. */
.home-page .hero.hero-ref {
  min-height: 100vh;
  background: transparent;
  box-shadow: none;
}

.home-page .hero.hero-ref::after {
  display: none;
}

/* Second screen: also no plate. Only the small cards are modules. */
.home-hub {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  padding: clamp(104px, 11.5vh, 124px) 0 clamp(48px, 7vh, 78px);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-hub::before,
.home-hub::after {
  display: none;
}

.hub-shell {
  display: flex;
  flex-direction: column;
  width: auto;
}

.hub-head {
  max-width: 680px;
  margin-bottom: clamp(20px, 2.8vh, 28px);
}

.hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
}

.hub-eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(51, 92, 255, 0.24);
  border-radius: 5px;
  color: var(--cobalt);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.hub-head h2 {
  margin: 18px 0 0;
  font-size: clamp(40px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.hub-head p {
  max-width: 470px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* The only modules on the page: small, glossy glass cards. */
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 16px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.64) 0%,
      rgba(255, 255, 255, 0.46) 52%,
      rgba(255, 255, 255, 0.38) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow:
    0 24px 46px -30px rgba(20, 32, 70, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease-out), background 0.3s ease,
    border-color 0.3s ease, box-shadow 0.35s ease;
}

/* A thin, glossy top edge — reads as glass without a heavy outline. */
.hub-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 28%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.95) 72%,
    transparent 100%);
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.58) 55%,
      rgba(255, 255, 255, 0.46) 100%);
  box-shadow:
    0 30px 52px -30px rgba(20, 32, 70, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.20);
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cobalt);
}

.hub-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hub-card-top .icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.hub-card h2, .hub-card h3 {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.hub-card p {
  max-width: 240px;
  margin: 7px 0 0;
  padding-right: 28px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.hub-card .hub-contact-line {
  margin-top: 6px;
  padding-right: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hub-arrow {
  position: absolute;
  right: 17px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  color: var(--ink-soft);
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hub-card:hover .hub-arrow {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #fff;
}

.hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(13, 20, 36, 0.09);
  font-size: 11px;
  color: var(--muted);
}

.hub-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hub-foot a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.hub-foot a:hover {
  color: var(--cobalt);
}

.hub-foot .hub-mail {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

@media (max-width: 980px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-head h2 {
    font-size: clamp(38px, 6vw, 52px);
  }

  .home-hub {
    min-height: 0;
    padding: 92px 0 58px;
  }
}

@media (max-width: 620px) {
  .home-page .hero.hero-ref {
    min-height: 0;
  }

  .home-hub {
    padding: 64px 0 46px;
  }

  .hub-head {
    margin-bottom: 24px;
  }

  .hub-head h2 {
    margin-top: 14px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .hub-head p {
    margin-top: 14px;
    font-size: 13px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-card {
    min-height: 118px;
    padding: 17px 18px;
  }

  .hub-card h2, .hub-card h3 {
    margin-top: 15px;
    font-size: 17px;
  }

  .hub-card p {
    max-width: none;
    margin-top: 5px;
    padding-right: 34px;
  }

  .hub-foot {
    display: block;
    margin-top: 17px;
    padding-top: 17px;
    line-height: 1.9;
  }

  .hub-foot-links {
    margin-top: 8px;
    gap: 14px;
  }
}
