/* ============ 三端入口页 ============ */
body.portal { background: #f4f7fb; color: var(--ink); }
.p-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  max-width: 1320px; margin: 0 auto; padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff;
}
.p-brand { display: flex; align-items: center; gap: 11px; }
.p-brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.p-brand i { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; letter-spacing: 0.04em; }
.p-links { display: flex; align-items: center; gap: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.p-links a:hover { color: #fff; }
.p-login {
  height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex; align-items: center; color: #fff !important; background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.p-login:hover { background: rgba(255, 255, 255, 0.16); }

/* Hero */
.p-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(110% 90% at 88% -10%, #2f74ff 0%, #123a6b 40%, #07182e 76%);
}
.p-grid {
  position: absolute; inset: 0; opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 80% at 65% 10%, #000 0%, transparent 78%);
}
.p-glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.p-glow.g1 { width: 520px; height: 520px; right: 12%; top: -220px; background: radial-gradient(circle, rgba(64, 134, 255, 0.5), transparent 65%); }
.p-glow.g2 { width: 420px; height: 420px; left: -140px; bottom: -220px; background: radial-gradient(circle, rgba(15, 181, 166, 0.22), transparent 66%); }
.p-hero-inner {
  position: relative; z-index: 2; max-width: 1320px; margin: 0 auto;
  padding: 138px 40px 118px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
}
.p-eyebrow {
  display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.52);
}
.p-eyebrow span { width: 22px; height: 1px; background: #5eead4; display: inline-block; }
.p-eyebrow.dark { color: var(--muted); }
.p-eyebrow.dark span { background: var(--brand); }
.p-eyebrow.light { color: rgba(255, 255, 255, 0.55); }
.p-copy h1 {
  font-size: 54px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-top: 22px;
}
.p-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #7fb0ff 0%, #5eead4 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-copy > p {
  font-size: 14.5px; line-height: 1.95; color: rgba(255, 255, 255, 0.58); margin-top: 22px; max-width: 520px;
}
.p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.p-meta i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.p-actions { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.p-actions .btn-lg { height: 48px; padding: 0 26px; }
.p-ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.p-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Hero visual */
.p-visual { position: relative; height: 440px; }
.flow-card {
  position: absolute; top: 34px; left: 4%; width: 350px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 16px 18px 10px; box-shadow: 0 30px 70px rgba(2, 12, 28, 0.42);
  transform: rotate(-2deg);
}
.fc-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12); }
.fc-live { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--green); background: var(--green-50); padding: 2px 7px; border-radius: 99px; }
.fc-step { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.fc-step:last-child { border-bottom: 0; }
.fc-step > i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d8e1ee; background: #fff; flex: none; position: relative; }
.fc-step.done > i { background: var(--brand); border-color: var(--brand); }
.fc-step.done > i::after { content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.4px 1.4px 0; transform: rotate(42deg); }
.fc-step.active > i { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27, 91, 247, 0.14); }
.fc-step div { flex: 1; min-width: 0; }
.fc-step b { font-size: 12.5px; font-weight: 600; display: block; }
.fc-step span { font-size: 10.5px; color: var(--soft); display: block; margin-top: 1px; }
.fc-step em { font-style: normal; font-size: 10px; color: var(--soft); }
.sign-float {
  position: absolute; right: 4%; bottom: 6px; width: 168px; background: #fff; border-radius: 16px;
  padding: 14px 14px 10px; text-align: center; box-shadow: 0 24px 60px rgba(2, 12, 28, 0.4);
  transform: rotate(3deg);
}
.sign-float .sig { width: 100%; height: 46px; }
.sign-float span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; }
.score-float {
  position: absolute; left: 0; bottom: 26px; background: rgba(255, 255, 255, 0.96); color: var(--ink);
  border-radius: 14px; padding: 12px 16px; box-shadow: 0 24px 60px rgba(2, 12, 28, 0.4);
  transform: rotate(2deg); min-width: 132px;
}
.sf-stars { color: #f5a524; font-size: 12px; letter-spacing: 2px; }
.score-float b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; display: inline-block; margin-top: 2px; }
.score-float span { font-size: 10.5px; color: var(--muted); margin-left: 5px; }
.p-scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 11px; color: rgba(255, 255, 255, 0.36); letter-spacing: 0.08em; z-index: 2;
}

/* Main */
.p-main { background: #f4f7fb; padding-bottom: 20px; }
.p-entry { max-width: 1320px; margin: 0 auto; padding: 52px 40px 0; position: relative; z-index: 3; }
.p-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.p-section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin-top: 10px; }
.p-section-head > p { font-size: 13px; color: var(--muted); padding-bottom: 5px; }
.p-entry .p-section-head h2 { font-size: 26px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.entry-card {
  background: #fff; border-radius: 20px; padding: 26px 26px 22px; position: relative; overflow: hidden;
  border: 1px solid rgba(15, 29, 51, 0.05); box-shadow: 0 16px 40px rgba(11, 27, 51, 0.08);
  display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.entry-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.entry-card.staff::before { background: var(--teal); }
.entry-card.admin::before { background: var(--purple); }
.entry-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(11, 27, 51, 0.13); }
.ec-top { display: flex; align-items: center; justify-content: space-between; }
.ec-icon { font-size: 12px; font-weight: 700; color: #c3cfe0; letter-spacing: 0.1em; }
.ec-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--brand-50); color: var(--brand); }
.staff .ec-badge { background: var(--teal-50); color: #0a8f83; }
.admin .ec-badge { background: var(--purple-50); color: var(--purple); }
.entry-card h3 { font-size: 20px; font-weight: 700; margin-top: 20px; letter-spacing: -0.01em; }
.entry-card > p { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin-top: 10px; min-height: 68px; }
.entry-card ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.entry-card li { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.entry-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; }
.staff li::before { background: var(--teal); }
.admin li::before { background: var(--purple); }
.ec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--brand); }
.staff .ec-foot { color: #0a8f83; }
.admin .ec-foot { color: var(--purple); }
.ec-arrow { font-style: normal; font-size: 16px; transition: transform 0.2s; }
.entry-card:hover .ec-arrow { transform: translateX(4px); }
.demo-line {
  margin-top: 16px; background: #fff; border: 1px dashed #d9e2ef; border-radius: 12px;
  padding: 12px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted);
}
.demo-line > span { font-size: 10px; letter-spacing: 0.12em; color: var(--soft); }
.demo-line b { font-weight: 500; color: var(--ink-2); }

/* Ability */
.p-ability { max-width: 1320px; margin: 0 auto; padding: 76px 40px 40px; }
.ability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ability {
  background: #fff; border-radius: 16px; padding: 22px 22px 20px; border: 1px solid rgba(15, 29, 51, 0.045);
  transition: border-color 0.2s, transform 0.2s;
}
.ability:hover { border-color: #cfdcf1; transform: translateY(-2px); }
.ability span { font-size: 11px; font-weight: 700; color: #bcc9db; letter-spacing: 0.1em; }
.ability b { display: block; font-size: 15px; font-weight: 700; margin-top: 10px; }
.ability p { font-size: 12px; color: var(--muted); line-height: 1.75; margin-top: 6px; }

/* Band */
.p-band {
  max-width: 1240px; margin: 46px auto 70px; padding: 44px 50px; border-radius: 24px; color: #fff;
  background: radial-gradient(110% 130% at 90% 0%, #1b5bf7 0%, #123a6b 46%, #07182e 88%);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.p-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(90% 100% at 80% 0%, #000, transparent 75%);
}
.p-band-copy { position: relative; max-width: 640px; }
.p-band-copy h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.p-band-copy p { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.9; margin-top: 10px; }
.p-band-sign {
  position: relative; background: #fff; border-radius: 16px; padding: 18px 24px 14px;
  box-shadow: 0 20px 50px rgba(2, 12, 28, 0.4); min-width: 210px; text-align: center; color: var(--ink);
}
.p-band-sign .pbs-stars { color: #f5a524; letter-spacing: 3px; font-size: 13px; }
.p-band-sign b { display: block; font-size: 15px; margin-top: 5px; }
.p-band-sign svg { width: 170px; height: 44px; margin: 4px auto 0; }
.p-band-sign span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Footer */
.p-footer { background: #07182e; color: #fff; padding: 30px 40px; }
.p-footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.p-footer .p-brand i { color: rgba(255, 255, 255, 0.4); }
.p-footer-info { display: flex; gap: 26px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 1100px) {
  .p-hero-inner { grid-template-columns: 1fr; padding-bottom: 140px; }
  .p-visual { display: none; }
  .p-copy h1 { font-size: 44px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card > p { min-height: 0; }
  .ability-grid { grid-template-columns: 1fr 1fr; }
  .p-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 720px) {
  .p-nav { padding: 18px 20px; }
  .p-links a:not(.p-login) { display: none; }
  .p-hero-inner { padding: 110px 20px 130px; }
  .p-copy h1 { font-size: 34px; }
  .p-copy > p { font-size: 13px; }
  .p-entry, .p-ability { padding-left: 18px; padding-right: 18px; }
  .p-entry { padding-top: 40px; }
  .p-section-head h2 { font-size: 24px; }
  .entry-card { padding: 22px; }
  .ability-grid { grid-template-columns: 1fr; }
  .p-band { margin: 30px 18px 50px; padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .p-band-sign { align-self: flex-start; }
  .p-band-copy h2 { font-size: 22px; }
  .p-footer { padding: 26px 20px; }
  .p-footer-info { gap: 10px; flex-direction: column; }
  .p-scroll-hint { display: none; }
}
