/* Shared site styles extracted from the original homepage stylesheet */

:root{
  --bg:#030914;
  --bg-2:#071223;
  --panel:rgba(11,23,46,.66);
  --border:rgba(171,198,255,.18);
  --text:#eef4ff;
  --muted:rgba(238,244,255,.76);
  --soft:rgba(238,244,255,.54);
  --accent:#8eb8ff;
  --accent-2:#8be2ff;
  --accent-3:#a68cff;
  --glow:0 0 40px rgba(142,184,255,.18);
  --container:1280px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(84,185,255,.08), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(166,140,255,.08), transparent 28%),
    linear-gradient(180deg,#050d1a 0%,#030914 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.16));
}

a{color:inherit;text-decoration:none}
[data-lang]{display:none}
html.lang-zh [data-lang="zh"],
html.lang-en [data-lang="en"]{display:inline}

.container{
  width:min(calc(100% - 48px), var(--container));
  margin:0 auto;
}

.site-shell{position:relative;z-index:1}

body.intro-active{overflow:hidden;}
body.intro-active .site-shell{opacity:.82;filter:blur(6px);transition:opacity .42s ease, filter .42s ease;}
body.intro-complete .site-shell{opacity:1;filter:none;transition:opacity .42s ease, filter .42s ease;}

.navbar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(3,9,20,.72);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:80px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand-mark{
  width:46px;
  height:46px;
  flex:0 0 auto;
  border-radius:14px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 30%, rgba(142,184,255,.95), transparent 34%),
    radial-gradient(circle at 70% 68%, rgba(166,140,255,.85), transparent 35%),
    rgba(255,255,255,.04);
  box-shadow:var(--glow);
}
.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  transform:rotate(24deg);
}
.brand-mark::after{
  inset:11px 7px;
  transform:rotate(-34deg);
}
.brand-text{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.brand-text__cn{
  font-size:18px;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  line-height:1.08;
}
.brand-text__en{
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.11em;
  text-transform:uppercase;
  white-space:nowrap;
  color:var(--muted);
  line-height:1.24;
}
.nav-right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.nav-links a{
  position:relative;
  padding:8px 0;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:1px;
  width:0;
  height:1.5px;
  background:linear-gradient(90deg,var(--accent-2),var(--accent));
  transition:width .25s ease;
}
.nav-links a:hover,
.nav-links a.active{color:var(--text)}
.nav-links a:hover::after,
.nav-links a.active::after{width:100%}
.nav-cta{
  min-width:auto;
  padding:6px 7.2px;
  font-size:8.4px;
  line-height:1.1;
  white-space:nowrap;
}
.lang-switch{
  display:inline-flex;
  padding:4px;
  gap:4px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.lang-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 12px;
  font-size:12px;
  border-radius:999px;
  cursor:pointer;
}
html.lang-zh .lang-btn[data-set-lang="zh"],
html.lang-en .lang-btn[data-set-lang="en"]{
  color:var(--text);
  background:linear-gradient(135deg, rgba(142,184,255,.28), rgba(166,140,255,.16));
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:168px;
  padding:15px 24px;
  border-radius:999px;
  font-size:15px;
  font-weight:600;
  transition:transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.button:hover{transform:translateY(-2px)}
.button.primary{
  background:linear-gradient(135deg, rgba(142,184,255,.30), rgba(139,226,255,.20));
  border:1px solid rgba(142,184,255,.44);
  box-shadow:var(--glow);
}
.button.secondary{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
}

.site-footer{
  position:relative;
  z-index:2;
  padding:24px 0 30px;
  background:#000;
  border-top:1px solid rgba(255,255,255,.06);
}
.site-footer.panel-snap--footer{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.footer-top{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:28px;
  padding:10px 0 18px;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.footer-brand__cn{
  font-size:17px;
  color:#fff;
  font-weight:700;
}
.footer-brand__en{
  font-size:12px;
  letter-spacing:.10em;
  color:var(--soft);
}
.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:28px;
  padding-top:10px;
  color:rgba(255,255,255,.88);
  font-size:15px;
}
.footer-links a{white-space:nowrap}
.footer-qr{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.footer-qr__label{
  font-size:14px;
  color:rgba(255,255,255,.9);
}
.footer-qr__box{
  position:relative;
  width:116px;
  height:116px;
  border:1px solid rgba(255,255,255,.22);
  background:#fff;
  display:grid;
  place-items:center;
  color:#111;
  font-size:18px;
  font-weight:700;
}
.footer-qr__grid{
  position:absolute;
  inset:10px;
  background-image:
    linear-gradient(#111 10px, transparent 10px),
    linear-gradient(90deg, #111 10px, transparent 10px);
  background-size:22px 22px;
  opacity:.22;
}
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.64);
  font-size:13px;
}

@media (max-width:980px){
  .nav-inner{align-items:flex-start; flex-direction:column; padding:14px 0 18px}
  .nav-right{width:100%; justify-content:space-between; align-items:center}
  .footer-top{grid-template-columns:1fr; justify-items:center; text-align:center}
}

@media (max-width:640px){
  .container{width:min(calc(100% - 28px), var(--container))}
  .nav-links{gap:14px; font-size:13px}
  .lang-switch{width:100%; justify-content:center}
  .nav-right{align-items:stretch}
  .button{width:100%}
  .footer-links{gap:16px; font-size:14px}
  .footer-qr__box{width:96px; height:96px}
}


/* ===== Safe cleanup overrides (conservative, non-destructive) ===== */
:root{
  --nav-height: 80px;
  --section-space-y: 96px;
  --section-space-y-lg: 112px;
  --title-size-xl: clamp(34px, 3.85vw, 58px);
  --body-size-md: clamp(17px, 1.22vw, 20px);
  --radius-card: 28px;
  --shadow-panel: 0 18px 42px rgba(2,7,18,.22), inset 0 1px 0 rgba(255,255,255,.04);
}

main section[id]{
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.button,
a.button{
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.button:hover,
a.button:hover{
  transform: translateY(-1px);
}

img{
  max-width:100%;
  display:block;
}
