/* ============================================================
   云舟 · 门户视觉层（官网 / 登录 / 注册 / 后台登录）
   ------------------------------------------------------------
   基调：蓝白轻玻璃 · 克制高级 · 移动优先
   动效原则：只做「位移 + 透明度 + 微弱光晕」，且全部可降级
     · prefers-reduced-motion → 全关
     · 移动端 → 关光斑漂移、关毛玻璃（保性能）
     · 触屏 → 不做指针光晕
   注意：光斑一律用 radial-gradient 本身柔和，**不加 filter: blur**
        （blur 大图层每帧重绘，实测能把 FPS 打到 14）
   ============================================================ */

/* ---------------- 背景 ---------------- */
body.portal { background: #f6f9fe; overflow-x: hidden; }
.yz-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.yz-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1180px 620px at 80% -10%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(880px 520px at 4% 4%, rgba(99,102,241,.10), transparent 58%),
    linear-gradient(180deg, #fcfdff 0%, #f3f7fd 44%, #e9eff9 100%);
}
/* 光斑：只做位移，**不做 scale** ——
   scale 会让浏览器每帧重新光栅化这块大面积 radial-gradient，
   实测空闲帧率从 60 掉到 38（已做 A/B 对照）。纯位移走 GPU 合成，零重绘。 */
.yz-orb {
  position: absolute; border-radius: 50%;
  will-change: transform; transform: translateZ(0);
  backface-visibility: hidden;
}
.yz-orb.a {
  width: 540px; height: 540px; left: -150px; top: -130px;
  background: radial-gradient(circle at 36% 34%, rgba(59,130,246,.30), rgba(59,130,246,0) 66%);
  animation: yzOrbA 26s ease-in-out infinite;
}
.yz-orb.b {
  width: 620px; height: 620px; right: -190px; top: 40px;
  background: radial-gradient(circle at 58% 42%, rgba(56,189,248,.24), rgba(56,189,248,0) 68%);
  animation: yzOrbB 34s ease-in-out infinite;
}
@keyframes yzOrbA { 50% { transform: translate3d(64px, 46px, 0); } }
@keyframes yzOrbB { 50% { transform: translate3d(-54px, 58px, 0); } }
.yz-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(37,99,235,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(920px 540px at 50% 6%, #000 10%, transparent 70%);
  mask-image: radial-gradient(920px 540px at 50% 6%, #000 10%, transparent 70%);
}
body.portal > *:not(.yz-bg) { position: relative; z-index: 1; }

/* ---------------- 容器与导航 ---------------- */
.p-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.p-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.76);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  backdrop-filter: blur(16px) saturate(1.7);
  border-bottom: 1px solid rgba(15,23,42,.065);
}
.p-nav-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.p-nav .logo { font-size: 15.5px; }
.p-links { display: flex; gap: 4px; margin-left: 10px; }
.p-links a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  padding: 7px 11px; border-radius: 9px; transition: background .18s, color .18s;
}
.p-links a:hover { background: rgba(37,99,235,.07); color: var(--brand); }

/* ---------------- 按钮 ---------------- */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 13px; border: 1px solid transparent;
  font-size: 14.8px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .22s, background .2s, border-color .2s;
  touch-action: manipulation;
}
.p-btn.primary {
  color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px -11px rgba(37,99,235,.7);
}
.p-btn.primary:hover { transform: translateY(-1.5px); box-shadow: 0 18px 34px -13px rgba(37,99,235,.78); }
.p-btn.primary:active { transform: translateY(0); }
.p-btn.ghost {
  background: rgba(255,255,255,.82); border-color: rgba(15,23,42,.10); color: var(--ink);
}
.p-btn.ghost:hover { background: #fff; border-color: rgba(37,99,235,.34); transform: translateY(-1.5px); }
.p-btn.sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 11px; }
.p-btn.block { width: 100%; }

/* ---------------- 玻璃卡片 ---------------- */
/* 卡片质感：半透明白 + 极细描边 + 多层柔和阴影。
   ⚠️ 这里**刻意不用 backdrop-filter**：与「会动的背景光斑」共存时，
   浏览器每帧都要为每张卡重新采样背景，实测把空闲帧率从 58 拖到 35
   （A/B：14 张毛玻璃 36fps → 去掉后 58.6fps；只留首屏 2 张也仅 35fps）。
   背景本身是极淡的蓝白渐变，改用半透明实色后**肉眼几乎无差别**，
   毛玻璃只保留在「顶部导航」和「统计条」两条小面积区域。 */
.p-card {
  position: relative; border-radius: 20px; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 42px -24px rgba(15,23,42,.30);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s, border-color .3s;
}
.p-card:hover {
  transform: translateY(-3px); border-color: rgba(37,99,235,.22);
  box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 28px 56px -26px rgba(15,23,42,.36);
}
.p-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,0%), rgba(59,130,246,.15), transparent 62%);
}
.p-card.live:hover::after { opacity: 1; }

/* ---------------- 首屏 ---------------- */
.p-hero { padding: 84px 0 8px; text-align: center; }
.p-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.p-eyebrow::before, .p-eyebrow::after {
  content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,.5));
}
.p-eyebrow::after { background: linear-gradient(90deg, rgba(37,99,235,.5), transparent); }
.p-hero h1 {
  font-size: clamp(33px, 5.2vw, 60px); line-height: 1.09; letter-spacing: -.038em;
  font-weight: 660; margin: 20px 0 0; color: #0b1220;
}
.p-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-hero p.sub {
  font-size: clamp(15px, 1.35vw, 16.8px); line-height: 1.88; color: var(--ink-2);
  max-width: 620px; margin: 22px auto 0;
}
.p-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.p-trust { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.p-chip {
  font-size: 12.3px; color: var(--ink-3); padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(15,23,42,.07);
}

/* ---------------- 首屏视觉区 ---------------- */
.p-vis {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px;
  align-items: stretch; margin: 56px auto 0; max-width: 1000px; text-align: left;
}
.p-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.p-flow { position: relative; }
.p-flow-step { display: flex; gap: 14px; padding: 15px 0; position: relative; }
.p-flow-step + .p-flow-step { border-top: 1px solid rgba(15,23,42,.055); }
.p-flow-n {
  width: 27px; height: 27px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 620; color: var(--brand);
  background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(59,130,246,.07));
  border: 1px solid rgba(37,99,235,.16);
}
.p-flow-step b { font-size: 14.3px; font-weight: 570; }
.p-demo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-demo-qr {
  width: 172px; height: 172px; border-radius: 16px; background: #fff; padding: 9px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 30px -18px rgba(15,23,42,.4);
}
.p-demo-ph {
  width: 172px; height: 172px; border-radius: 16px; display: grid; place-items: center;
  border: 1px dashed rgba(15,23,42,.16); color: var(--ink-3); font-size: 12.8px; line-height: 1.85;
  background: rgba(255,255,255,.6); text-align: center;
}

/* ---------------- 统计（oversized 数字） ---------------- */
.p-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 66px 0 0; border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 42px -26px rgba(15,23,42,.28);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.p-stat { padding: 26px 20px; text-align: center; position: relative; }
.p-stat + .p-stat::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.09), transparent);
}
.p-stat .n {
  font-size: clamp(30px, 3.8vw, 44px); font-weight: 650; letter-spacing: -.042em;
  font-variant-numeric: tabular-nums; line-height: 1;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6 70%); 
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-stat .l { font-size: 12.6px; color: var(--ink-3); margin-top: 9px; letter-spacing: .03em; }

/* ---------------- 区块 ---------------- */
.p-sec { padding: 74px 0 0; }
.p-sec-h { text-align: center; margin-bottom: 34px; }
.p-sec-h h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.028em; margin: 0 0 10px; font-weight: 645; }
.p-sec-h p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.8; }
.p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-step-k { font-size: 11.6px; font-weight: 640; letter-spacing: .14em; color: var(--brand); }
.p-step h4 { margin: 13px 0 8px; font-size: 16.2px; font-weight: 600; letter-spacing: -.01em; }
.p-step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.78; }
.p-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-feat-ic {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--brand);
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(59,130,246,.06));
  border: 1px solid rgba(37,99,235,.14);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), background .3s;
}
.p-card:hover .p-feat-ic { transform: translateY(-2px) scale(1.05); }
.p-feat h4 { margin: 15px 0 7px; font-size: 15.6px; font-weight: 600; }
.p-feat p { margin: 0; font-size: 13.8px; color: var(--ink-2); line-height: 1.78; }

/* ---------------- 页脚 ---------------- */
.p-foot { margin-top: 78px; border-top: 1px solid rgba(15,23,42,.07); background: rgba(255,255,255,.55); }
.p-foot-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 30px 0; font-size: 13.4px; color: var(--ink-3); }
.p-foot-in b { color: var(--ink); font-weight: 600; }

/* ---------------- 认证页（登录/注册/后台） ---------------- */
.p-auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.p-auth-aside { padding: 60px 5vw 60px 6vw; max-width: 620px; }
.p-auth-aside .p-eyebrow { justify-content: flex-start; }
.p-auth-aside .p-eyebrow::before { display: none; }
.p-auth-aside h2 {
  font-size: clamp(27px, 3.1vw, 40px); line-height: 1.14; letter-spacing: -.035em;
  font-weight: 655; margin: 18px 0 0; color: #0b1220;
}
.p-auth-aside p { font-size: 15px; line-height: 1.9; color: var(--ink-2); margin: 20px 0 0; max-width: 470px; }
.p-auth-list { margin: 30px 0 0; display: grid; gap: 13px; }
.p-auth-li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.2px; color: var(--ink-2); line-height: 1.7; }
.p-auth-li i {
  width: 19px; height: 19px; flex: none; margin-top: 2px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(37,99,235,.12); color: var(--brand);
}
.p-auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.p-auth-card { width: 100%; max-width: 430px; }
.p-auth .p-card {
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.78));
}
.p-auth-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 22px; font-size: 15.5px; font-weight: 570; }
.p-auth-title { font-size: 21px; font-weight: 640; letter-spacing: -.02em; margin: 0 0 7px; }
.p-auth-desc { font-size: 13.8px; color: var(--ink-2); margin: 0 0 24px; line-height: 1.75; }
.p-auth-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13.4px; color: var(--ink-3); }
.p-auth-foot a { color: var(--brand); text-decoration: none; }
.p-auth-foot a:hover { text-decoration: underline; }
.p-auth-tip { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 20px; }
.p-auth-tip a { color: var(--ink-2); }

/* 表单 */
.p-field { margin-bottom: 15px; }
.p-field > span { display: block; font-size: 12.9px; color: var(--ink-2); margin-bottom: 7px; font-weight: 520; }
.p-input {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 13px; font-size: 15px;
  border: 1px solid rgba(15,23,42,.11); background: rgba(255,255,255,.76); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.p-input::placeholder { color: #9aa7bb; }
.p-input:hover { border-color: rgba(15,23,42,.18); }
.p-input:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.13);
}
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.4px; color: var(--ink-2); line-height: 1.7; }
.p-check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

/* ---------------- 入场动效 ----------------
   关键：默认**可见**，只有 JS 成功加载后才会加 .pre 把它藏起来再入场。
   这样 JS 加载失败/被拦截时，页面内容依然完整可见（不会白屏）。 */
.p-in.pre { opacity: 0; transform: translateY(16px); }
.p-in.on {
  opacity: 1; transform: none;
  transition: opacity .68s cubic-bezier(.22,.61,.36,1), transform .68s cubic-bezier(.22,.61,.36,1);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .p-vis { grid-template-columns: 1fr; max-width: 620px; }
  .p-auth { grid-template-columns: 1fr; }
  .p-auth-aside { display: none; }
  .p-auth-main { min-height: 100dvh; }
  .p-feats, .p-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .yz-orb { animation: none; }                 /* 移动端关光斑漂移，省电 */
  .p-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.95); }
  .yz-grid { opacity: .38; }
  .p-links { display: none; }
  .p-hero { padding: 52px 0 6px; }
  .p-vis { margin-top: 38px; }
  .p-sec { padding: 52px 0 0; }
  .p-stats { margin-top: 44px; }
  .p-foot { margin-top: 56px; }
}
@media (max-width: 620px) {
  .p-feats, .p-steps { grid-template-columns: 1fr; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-stat { padding: 20px 12px; }
  .p-stat:nth-child(3)::before { display: none; }
  .p-stat:nth-child(3), .p-stat:nth-child(4) { border-top: 1px solid rgba(15,23,42,.07); }
  .p-cta .p-btn { width: 100%; }
  .p-nav-in { height: 58px; }
}

/* ---------------- 降级：尊重系统「减少动态效果」 ---------------- */
@media (prefers-reduced-motion: reduce) {
  .yz-orb { animation: none !important; }
  .p-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .p-card, .p-btn, .p-input, .p-feat-ic { transition: none !important; }
  .p-card:hover { transform: none; }
  .p-card::after { display: none; }
}
