/* ============================================================
   灵境人生 · 静态门户
   Frosted-glass field · no central medallion
   ============================================================ */

:root {
  --ink: #162537;
  --ink-soft: #445a72;
  --muted: #5b7087;
  --line: rgba(35, 56, 80, 0.14);
  --accent: #7b9dc4;
  --pad: clamp(22px, 4.2vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  --font-text: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #edf3fb;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #edf3fb;
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(119, 160, 210, 0.28);
  color: #0e1c2c;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #142335;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(74, 97, 127, 0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #5d7f9f;
  outline-offset: 3px;
}

/* ---------- Frosted background ------------------------------ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #edf3fb;
}

.ambient__base {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background:
    radial-gradient(ellipse 62% 56% at 8% 4%, rgba(139, 181, 241, 0.92), transparent 68%),
    radial-gradient(ellipse 58% 52% at 92% 8%, rgba(208, 185, 246, 0.88), transparent 68%),
    radial-gradient(ellipse 58% 52% at 92% 92%, rgba(154, 228, 221, 0.82), transparent 68%),
    radial-gradient(ellipse 60% 56% at 6% 96%, rgba(163, 198, 243, 0.9), transparent 68%),
    linear-gradient(135deg, #f7fbff 0%, #e7effa 42%, #f2edfb 76%, #e9f8f5 100%);
  filter: blur(2px);
}

.ambient__base::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.48) 42%, transparent 61%),
    linear-gradient(300deg, transparent 36%, rgba(216, 237, 255, 0.26) 54%, transparent 72%);
  opacity: 0.9;
}

.ambient__base::after {
  content: "";
  position: absolute;
  top: 12%;
  left: -28%;
  width: 155%;
  height: 64%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.34) 26%,
    rgba(178, 211, 249, 0.18) 52%,
    transparent 92%
  );
  opacity: 0.7;
  filter: blur(48px);
  transform: rotate(-17deg);
}

.ambient__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.9) contrast(0.98) brightness(1.01);
  animation: image-in 1.4s var(--ease-out) both;
}

.ambient__image[hidden] {
  display: none;
}

.ambient__tone {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.32) 0%, rgba(247, 251, 255, 0.06) 28%, rgba(246, 251, 255, 0.12) 66%, rgba(244, 250, 255, 0.4) 100%),
    linear-gradient(140deg, rgba(194, 221, 251, 0.2), rgba(236, 230, 255, 0.1) 48%, rgba(196, 239, 233, 0.17));
}

.ambient__frost {
  position: absolute;
  inset: -10% -14%;
  z-index: 3;
  background:
    radial-gradient(ellipse 56% 45% at 50% 46%, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.36) 48%, rgba(255, 255, 255, 0.04) 78%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  -webkit-backdrop-filter: blur(34px) saturate(132%);
  backdrop-filter: blur(34px) saturate(132%);
  -webkit-mask-image: radial-gradient(
    ellipse 68% 58% at 50% 47%,
    #000 0%,
    rgba(0, 0, 0, 0.84) 38%,
    rgba(0, 0, 0, 0.24) 66%,
    transparent 84%
  );
  mask-image: radial-gradient(
    ellipse 68% 58% at 50% 47%,
    #000 0%,
    rgba(0, 0, 0, 0.84) 38%,
    rgba(0, 0, 0, 0.24) 66%,
    transparent 84%
  );
}

.ambient__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: scale(1.018);
  }
  to {
    opacity: 1;
    transform: scale(1.002);
  }
}

/* ---------- Page shell ------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

/* ---------- Brand ------------------------------------------ */

.masthead {
  position: relative;
  z-index: 4;
  padding: clamp(24px, 3.2vw, 44px) var(--pad) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 5px 16px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(74, 99, 132, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* Rounded-square mark: no circular emblem anywhere on the page. */
.brand__mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(226, 239, 253, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 46%);
  pointer-events: none;
}

.brand__mark-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__name {
  color: #0f2137;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-0.02em);
}

/* ---------- Hero ------------------------------------------- */

.hero {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding:
    clamp(60px, 8vh, 110px)
    var(--pad)
    clamp(56px, 9vh, 106px);
  position: relative;
  z-index: 2;
}

.hero__inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1540px;
  align-items: center;
  justify-content: center;
  transform: translateY(-1vh);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__welcome {
  margin: 0 0 clamp(10px, 1.7vh, 20px);
  padding-left: 0.56em;
  color: rgba(20, 40, 62, 0.86);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: 0.56em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero__place {
  display: block;
  padding: 0.07em 0.055em 0.12em;
  color: #1a2c41;
  font-family: var(--font-display);
  font-size: clamp(60px, 19vw, 224px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-indent: -0.035em;
  background-image: linear-gradient(
    180deg,
    #0e1d2e 2%,
    #1c3046 43%,
    #425b75 78%,
    #7890a7 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 30px rgba(68, 91, 121, 0.16));
}

.hero__en {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.6vw, 24px);
  margin-top: clamp(21px, 3.7vh, 38px);
  color: rgba(24, 45, 69, 0.9);
  font-family: var(--font-text);
  font-size: clamp(12px, 1.28vw, 18px);
  font-weight: 480;
  line-height: 1.65;
  letter-spacing: 0.145em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.hero__en::before,
.hero__en::after {
  content: "";
  flex: 0 1 clamp(18px, 3.2vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 82, 108, 0.3));
}

.hero__en::after {
  background: linear-gradient(90deg, rgba(60, 82, 108, 0.3), transparent);
}

/* ---------- Regulatory footer ------------------------------ */

.site-footer {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: auto;
  padding:
    clamp(20px, 2.2vw, 26px)
    var(--pad)
    calc(clamp(20px, 2.2vw, 26px) + env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-glass {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 11px 29px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(239, 247, 255, 0.44));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 18px 45px rgba(64, 89, 124, 0.17);
  text-align: center;
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
}

.filings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(36, 58, 84, 0.15);
  color: rgba(21, 41, 64, 0.7);
  font-size: clamp(11px, 0.84vw, 12px);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
}

.footer-copyright {
  white-space: nowrap;
}

.footer-copyright__mark {
  margin-right: 2px;
  color: rgba(21, 41, 64, 0.88);
  font-size: 1.12em;
  font-weight: 600;
}

.footer-meta__divider {
  width: 1px;
  height: 10px;
  background: rgba(36, 58, 84, 0.2);
}

.footer-contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.footer-contact a {
  color: #10263e;
  font-weight: 520;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 38, 62, 0.25);
  transition:
    color 0.22s ease,
    border-color 0.22s ease;
}

.footer-contact a:hover {
  color: #061a2d;
  border-bottom-color: rgba(6, 26, 45, 0.6);
}

.footer-contact a:focus-visible {
  outline: 1.5px solid rgba(43, 81, 119, 0.72);
  outline-offset: 3px;
  border-radius: 2px;
}

.filing {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  color: #112338;
  font-size: clamp(13px, 1.04vw, 14.5px);
  font-weight: 560;
  line-height: 1.65;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.24s ease;
}

.filing:hover {
  color: #091827;
}

.filing:focus-visible {
  outline: 1.5px solid rgba(43, 81, 119, 0.72);
  outline-offset: 5px;
}

.filing__icp-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.filing__police-icon {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.filing__arrow {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  color: rgba(47, 71, 98, 0.38);
  transition:
    transform 0.24s var(--ease-out),
    color 0.24s ease;
}

.filing:hover .filing__arrow {
  color: rgba(20, 40, 62, 0.8);
  transform: translate(1px, -1px);
}


.filings__divider {
  width: 1px;
  height: 14px;
  background: rgba(36, 58, 84, 0.24);
}

/* ---------- Entrance motion -------------------------------- */

.js .brand,
.js .hero__welcome,
.js .hero__place,
.js .hero__en {
  opacity: 0;
}

.js .brand {
  transform: translateY(-8px);
}

.js .hero__welcome {
  transform: translateY(12px);
  filter: blur(5px);
}

.js .hero__place {
  transform: translateY(22px);
  filter: blur(10px);
}

.js .hero__en {
  transform: translateY(12px);
}

.js.is-ready .brand,
.js.is-ready .hero__welcome,
.js.is-ready .hero__place,
.js.is-ready .hero__en {
  opacity: 1;
  transform: translateY(0);
  filter: none;
  transition:
    opacity 1.05s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
}

.js.is-ready .brand {
  transition-delay: 0.08s;
}

.js.is-ready .hero__welcome {
  transition-delay: 0.25s;
}

.js.is-ready .hero__place {
  transition-delay: 0.33s;
}

.js.is-ready .hero__en {
  transition-delay: 0.52s;
}

/* ---------- Responsive ------------------------------------- */

@media (max-width: 720px) {
  .masthead {
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .brand {
    gap: 9px;
    padding: 4px 14px 4px 4px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .brand__name {
    font-size: 13.5px;
    letter-spacing: 0.14em;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero__inner {
    transform: translateY(-0.6vh);
  }

  .hero__welcome {
    margin-bottom: 13px;
    font-size: 14px;
    letter-spacing: 0.5em;
  }

  .hero__place {
    letter-spacing: -0.04em;
  }

  .hero__en {
    margin-top: 22px;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 0.095em;
  }

  .hero__en::before,
  .hero__en::after {
    flex-basis: 18px;
  }

  .site-footer {
    padding-top: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .footer-glass {
    width: min(100%, 430px);
    padding: 12px 18px;
    border-radius: 18px;
  }

  .filings {
    flex-direction: column;
    gap: 2px;
  }

  .filings__divider {
    display: none;
  }

  .filing {
    min-height: 31px;
    font-size: 12.5px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11px;
  }

  .footer-meta__divider {
    display: none;
  }

}

@media (max-width: 360px) {
  .hero__place {
    font-size: clamp(58px, 18.5vw, 66px);
  }

  .site-footer {
    padding-right: 12px;
    padding-left: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .footer-glass {
    width: 100%;
    padding: 10px 12px;
  }

  .filings {
    gap: 0;
  }

  .footer-meta {
    font-size: 10.5px;
  }

  .filing {
    gap: 5px;
    font-size: 11.5px;
  }

  .filing__arrow {
    width: 8px;
    height: 8px;
  }

  .hero__en {
    gap: 0;
    font-size: 10.5px;
    letter-spacing: 0.075em;
  }

  .hero__en::before,
  .hero__en::after {
    display: none;
  }

  .hero__welcome {
    letter-spacing: 0.4em;
  }
}

@media (max-height: 700px) {
  .masthead {
    padding-top: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero__inner {
    transform: translateY(0);
  }

  .hero__welcome {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .hero__place {
    font-size: clamp(54px, min(18vw, 24vh), 156px);
  }

  .hero__en {
    margin-top: 15px;
    font-size: 10.5px;
  }

  .site-footer {
    padding-top: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .filings {
    gap: 4px 20px;
  }

  .footer-glass {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .footer-meta {
    margin-top: 6px;
    padding-top: 6px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .hero {
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

@media (prefers-contrast: more) {
  .hero__en,
  .hero__welcome {
    color: #142335;
  }

  .filing {
    color: #102030;
  }

  .footer-glass {
    background: rgba(255, 255, 255, 0.94);
  }

  .ambient__frost {
    background: radial-gradient(ellipse 69% 56% at 50% 47%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.5) 55%, transparent 84%);
  }
}

@media (forced-colors: active) {
  .hero__place {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .brand,
  .js .hero__welcome,
  .js .hero__place,
  .js .hero__en {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .footer-glass {
    background: rgba(247, 251, 255, 0.96);
  }

  .brand {
    background: rgba(255, 255, 255, 0.62);
  }

  .ambient__frost {
    background: radial-gradient(ellipse 69% 56% at 50% 47%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 55%, transparent 84%);
  }
}
