/* ==========================================================================
   PrismLab · Apple-Inspired Minimalist Network Lab Design System (Light + Dark)
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-card: #ffffff;
  --bg-elevated: #fbfbfd;
  --bg-pill: rgba(0, 0, 0, 0.048);
  --bg-pill-hover: rgba(0, 0, 0, 0.085);

  --bg-dark: #000000;
  --bg-dark-alt: #08080b;
  --bg-dark-elevated: #111115;
  --bg-dark-card: #18181d;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-dark-primary: #f5f5f7;
  --text-dark-secondary: #a1a1a6;

  --nav-bg: rgba(255, 255, 255, 0.78);
  --drawer-bg: rgba(255, 255, 255, 0.96);

  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-red: #ff3b30;
  --accent-green: #30d158;
  --accent-purple: #af52de;
  --accent-cyan: #64d2ff;

  --border-light: rgba(0, 0, 0, 0.075);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.035);
  --shadow-card-hover: 0 22px 48px rgba(0, 0, 0, 0.08);
  --shadow-device: 0 30px 80px rgba(0, 0, 0, 0.09), 0 4px 18px rgba(0, 0, 0, 0.04);

  --join-bg: linear-gradient(135deg, #f5f5f7 0%, #eaf2ff 100%);
  --hero-bg: radial-gradient(circle at 50% 0%, #f4f7ff 0%, #ffffff 58%);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Dark Mode Theme Tokens
   ========================================================================== */
html[data-theme="dark"] {
  --bg-white: #000000;
  --bg-light: #0a0a0d;
  --bg-card: #141418;
  --bg-elevated: #18181d;
  --bg-pill: rgba(255, 255, 255, 0.08);
  --bg-pill-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #7c7c82;

  --nav-bg: rgba(14, 14, 18, 0.78);
  --drawer-bg: rgba(14, 14, 18, 0.96);

  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 24px 54px rgba(0, 0, 0, 0.6);
  --shadow-device: 0 36px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --join-bg: linear-gradient(135deg, #131318 0%, #0d1629 100%);
  --hero-bg: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.14) 0%, #000000 58%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

section[id] {
  scroll-margin-top: 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.hidden {
  display: none !important;
}

/* Matrix Easter Egg Canvas */
#easter-egg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#easter-egg-canvas.active {
  opacity: 0.85;
}

/* ==========================================================================
   1. Global Frosted Navigation
   ========================================================================== */

.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 54px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-divider {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 300;
  user-select: none;
}

.eeuicc-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-apple);
}

.eeuicc-logo-link:hover {
  background: var(--bg-pill-hover);
  border-color: rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.eeuicc-arrow {
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease-apple), color 0.2s ease;
}

.eeuicc-logo-link:hover .eeuicc-arrow {
  color: var(--accent-blue);
  transform: translate(1px, -1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cmd-trigger:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
}

.cmd-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.nav-cta {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-blue-hover);
}

.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  background: var(--drawer-bg);
  backdrop-filter: blur(20px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border-light);
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 17px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Status Ribbon */
.status-ribbon {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 9px 16px;
  text-align: center;
  transition: background-color 0.35s ease;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.status-pill:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulseDot 2.2s infinite;
}

.status-hint {
  color: var(--accent-blue);
  font-weight: 500;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 74px 0 98px;
  background: var(--hero-bg);
  text-align: center;
  overflow: hidden;
  transition: background 0.35s ease;
}

.hero-ambient {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.12), rgba(175, 82, 222, 0.06), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-size: 13px;
}

.badge-gradient {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0071e3, #af52de, #ff375f);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.eyebrow-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.title-gradient {
  background: linear-gradient(120deg, var(--text-primary) 15%, #0071e3 58%, #af52de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .title-gradient {
  background: linear-gradient(120deg, #ffffff 18%, #64d2ff 62%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 34px;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.52;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 54px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s var(--ease-apple), background 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-pill-hover);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-blue);
  font-size: 16px;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.btn-link:hover {
  gap: 9px;
}

/* Interactive Hero Core Device Card */
.hero-device {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-device);
  overflow: hidden;
  text-align: left;
  transition: transform 0.35s var(--ease-apple), background-color 0.35s ease, box-shadow 0.35s ease;
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.mode-switcher {
  display: inline-flex;
  background: var(--bg-pill);
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.mode-btn {
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.22s var(--ease-apple);
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.device-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.device-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 36px;
  padding: 42px 44px;
  background: radial-gradient(circle at 22% 50%, rgba(0, 113, 227, 0.1), transparent 60%);
  transition: background 0.45s ease;
}

.device-stage.mode-redteam {
  background: radial-gradient(circle at 22% 50%, rgba(255, 59, 48, 0.12), transparent 60%);
}

.device-stage.mode-traffic {
  background: radial-gradient(circle at 22% 50%, rgba(175, 82, 222, 0.13), transparent 60%);
}

.core-visual {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.core-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.24);
  filter: blur(26px);
  transition: background 0.4s ease;
}

.mode-redteam .core-glow { background: rgba(255, 59, 48, 0.26); }
.mode-traffic .core-glow { background: rgba(175, 82, 222, 0.28); }

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 113, 227, 0.28);
  transition: border-color 0.4s ease;
}

.mode-redteam .orbit { border-color: rgba(255, 59, 48, 0.32); }
.mode-traffic .orbit { border-color: rgba(175, 82, 222, 0.34); }

.orbit-1 {
  width: 210px;
  height: 210px;
  animation: spinSlow 24s linear infinite;
}

.orbit-2 {
  width: 158px;
  height: 158px;
  border-style: solid;
  border-color: var(--border-light);
  animation: spinSlow 16s linear infinite reverse;
}

.orbit-3 {
  width: 112px;
  height: 112px;
  animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.core-nucleus {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0071e3, #3a9bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.32);
  transition: all 0.4s var(--ease-apple);
}

.mode-redteam .core-nucleus {
  background: linear-gradient(145deg, #ff3b30, #ff6961);
  box-shadow: 0 16px 34px rgba(255, 59, 48, 0.32);
  transform: rotate(12deg) scale(1.04);
}

.mode-traffic .core-nucleus {
  background: linear-gradient(145deg, #af52de, #0071e3);
  box-shadow: 0 16px 34px rgba(175, 82, 222, 0.34);
  border-radius: 50%;
}

.readout-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.mode-redteam .readout-label { color: #ff453a; }
.mode-traffic .readout-label { color: #bf5af2; }

.readout-desc {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 500;
}

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

.metric-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.m-k {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.m-v {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   3. Section Shared Headers & Surfaces
   ========================================================================== */

.section-light-gray {
  padding: 104px 0;
  background: var(--bg-light);
  transition: background-color 0.35s ease;
}

.section-white {
  padding: 104px 0;
  background: var(--bg-white);
  transition: background-color 0.35s ease;
}

.section-dark {
  padding: 112px 0;
  background: var(--bg-dark);
  color: var(--text-dark-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark-alt {
  background: var(--bg-dark-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.kicker-glow {
  background: linear-gradient(90deg, #ff453a, #bf5af2, #0a84ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker-blue {
  color: var(--accent-cyan);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  font-size: 18px;
  color: var(--text-secondary);
}

.section-header.dark .section-lead {
  color: var(--text-dark-secondary);
}

/* ==========================================================================
   4. Bento Grid Research Matrix (with Mouse Spotlight Glow)
   ========================================================================== */

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

.bento-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple), background-color 0.35s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 113, 227, 0.075),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

html[data-theme="dark"] .spotlight-card::before {
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(100, 210, 255, 0.1),
    transparent 65%
  );
}

.spotlight-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-featured {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.bento-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.badge-red { background: rgba(255, 59, 48, 0.12); color: #ff453a; }
.badge-blue { background: rgba(0, 113, 227, 0.12); color: #0a84ff; }
.badge-purple { background: rgba(175, 82, 222, 0.12); color: #bf5af2; }
.badge-green { background: rgba(48, 209, 88, 0.14); color: #28cd41; }

.bento-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tags span {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-primary);
  font-weight: 500;
}

/* Mini Animated Duel inside Bento 1 */
.bento-mini-demo {
  background: #101014;
  color: #f5f5f7;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.duel-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.duel-actor { font-weight: 700; }
.duel-actor.red { color: #ff5f57; }
.duel-actor.blue { color: #5ac8fa; }

.duel-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.duel-pulse {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  border-radius: 99px;
}

.red-pulse {
  background: linear-gradient(90deg, transparent, #ff453a);
  animation: slideRight 2.1s infinite ease-in-out;
}

.blue-pulse {
  background: linear-gradient(90deg, #0a84ff, transparent);
  animation: slideLeft 2.1s infinite ease-in-out;
}

@keyframes slideRight {
  0% { left: -40%; }
  100% { left: 105%; }
}

@keyframes slideLeft {
  0% { right: -40%; }
  100% { right: 105%; }
}

.duel-status { color: #98989d; }
.duel-caption {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #86868b;
  font-size: 11px;
}

/* Mini Traffic Bars */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 54px;
  padding-top: 8px;
}

.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px;
  background: linear-gradient(180deg, #0a84ff, rgba(0, 113, 227, 0.25));
  transition: height 0.3s ease;
}

.bento-card:hover .mini-bars span {
  animation: barBounce 1.15s ease infinite alternate;
}

@keyframes barBounce {
  from { transform: scaleY(0.84); transform-origin: bottom; }
  to { transform: scaleY(1.07); transform-origin: bottom; }
}

/* Bento Stats Card */
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.stats-quote {
  max-width: 300px;
  font-style: italic;
  font-size: 14px !important;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   5. Dark Showcase #1: AI Red vs Blue Arena
   ========================================================================== */

.arena-shell {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.arena-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.scenario-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.scenario-btn.active {
  background: #ffffff;
  color: #000000;
}

.run-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.run-sim-btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.run-sim-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.arena-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.arena-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.agent-box {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.agent-box.active-red {
  border-color: rgba(255, 69, 58, 0.65);
  box-shadow: 0 0 28px rgba(255, 69, 58, 0.18);
}

.agent-box.active-blue {
  border-color: rgba(10, 132, 255, 0.7);
  box-shadow: 0 0 28px rgba(10, 132, 255, 0.2);
}

.agent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.agent-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.agent-pill.red { background: rgba(255, 69, 58, 0.16); color: #ff6961; }
.agent-pill.blue { background: rgba(10, 132, 255, 0.16); color: #64d2ff; }

.agent-state {
  font-size: 12px;
  color: var(--text-dark-secondary);
}

.agent-box h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.agent-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dark-secondary);
  line-height: 1.55;
}

.arena-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.bridge-line {
  position: relative;
  width: 2px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
}

.packet-dot {
  position: absolute;
  left: -4px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff453a;
  opacity: 0;
}

.packet-dot.firing {
  opacity: 1;
  animation: packetTravel 0.9s ease-in-out forwards;
}

@keyframes packetTravel {
  0% { top: 0; background: #ff453a; box-shadow: 0 0 12px #ff453a; }
  65% { top: 34px; background: #ff9f0a; }
  100% { top: 20px; background: #30d158; box-shadow: 0 0 12px #30d158; }
}

.bridge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8e8e93;
}

.arena-console {
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dark-secondary);
}

.verdict-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.verdict-badge.blocked {
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
}

.console-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
}

.log-line { margin-bottom: 8px; }
.log-line.muted { color: #86868b; }
.log-line.red { color: #ff6961; }
.log-line.blue { color: #64d2ff; }
.log-line.green { color: #30d158; }

.console-banter {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-dark-secondary);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.banter-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* ==========================================================================
   6. Dark Showcase #2: Encrypted Agent Traffic Microscope
   ========================================================================== */

.traffic-shell {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 28px;
  padding: 28px;
}

.traffic-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.seg-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: #ffffff;
  color: #000000;
}

.traffic-protocol {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.traffic-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.waveform-panel,
.fingerprint-panel {
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dark-secondary);
  margin-bottom: 14px;
}

.live-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
}

.live-indicator.warn {
  background: rgba(255, 159, 10, 0.16);
  color: #ffd60a;
}

.live-indicator.danger {
  background: rgba(255, 69, 58, 0.18);
  color: #ff6961;
}

#traffic-canvas {
  width: 100%;
  height: 220px;
  display: block;
}

.waveform-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.waveform-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dark-secondary);
}

.waveform-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-up { background: #64d2ff; }
.dot-down { background: #af52de; }

.waveform-stats {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8e8e93;
}

.fingerprint-panel h4 {
  margin: 0 0 20px;
  font-size: 17px;
}

.fp-metric {
  margin-bottom: 18px;
}

.fp-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dark-secondary);
  margin-bottom: 7px;
}

.fp-row strong {
  color: #fff;
  font-family: var(--font-mono);
}

.fp-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.fp-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0a84ff, #64d2ff);
  transition: width 0.55s var(--ease-apple), background 0.35s ease;
}

.fp-diagnosis {
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark-secondary);
}

.fp-diagnosis strong { color: #fff; }

/* ==========================================================================
   7. Publications & Open Source
   ========================================================================== */

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-white);
  border-color: transparent;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-item {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: transform 0.25s var(--ease-apple), box-shadow 0.25s ease, background-color 0.35s ease;
}

.pub-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.pub-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-venue {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-blue);
}

.pub-type {
  font-size: 12px;
  color: var(--text-tertiary);
}

.pub-body h4 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.pub-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pub-action {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pub-action:hover {
  background: var(--bg-pill-hover);
}

/* ==========================================================================
   8. Open Lab & Playful Cipher Box
   ========================================================================== */

.join-card {
  background: var(--join-bg);
  border-radius: 30px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border-light);
}

.join-left h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.join-left p {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--text-secondary);
}

.join-left strong {
  color: var(--text-primary);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cipher-box {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.cipher-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hint-btn {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 500;
}

.cipher-prompt {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.cipher-code {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #141418;
  color: #64d2ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
  user-select: all;
}

.cipher-input-row {
  display: flex;
  gap: 8px;
}

.cipher-input-row input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.cipher-input-row input:focus {
  border-color: var(--accent-blue);
}

.cipher-input-row button {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg-white);
  font-size: 13px;
  font-weight: 500;
}

.cipher-feedback {
  margin-top: 10px;
  font-size: 12.5px;
  min-height: 18px;
}

/* ==========================================================================
   9. Footer & Spotlight Command Modal
   ========================================================================== */

.site-footer {
  background: var(--bg-light);
  padding: 36px 0 44px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-tertiary);
  transition: background-color 0.35s ease;
}

.footer-note {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Spotlight ⌘K Modal */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh;
}

.spotlight-backdrop.open {
  display: flex;
}

.spotlight-dialog {
  width: min(620px, calc(100% - 32px));
  background: rgba(24, 24, 29, 0.94);
  backdrop-filter: blur(28px);
  color: #f5f5f7;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-prefix {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #30d158;
  white-space: nowrap;
}

.spotlight-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.spotlight-input-wrap kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
}

.spotlight-output {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  max-height: 300px;
  overflow-y: auto;
}

.sp-tip {
  color: #a1a1a6;
  margin-bottom: 14px;
}

.sp-tip code { color: #64d2ff; }

.sp-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-shortcuts button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: background 0.18s ease;
}

.sp-shortcuts button:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-apple);
  z-index: 600;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-featured {
    grid-template-columns: 1fr;
  }
  .arena-grid,
  .traffic-main,
  .join-card {
    grid-template-columns: 1fr;
  }
  .pub-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pub-action {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .cmd-label,
  .desktop-br,
  .brand-divider {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .device-stage {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .join-card {
    padding: 28px 22px;
  }
}

/* ==========================================================================
   12. Lab Passport · Eeuicc UIA 通行证账户系统
   ========================================================================== */

/* hidden 属性优先于组件 display 规则 */
[hidden] { display: none !important; }

.section-passport {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 42% at 18% 8%, rgba(0, 113, 227, 0.16), transparent 70%),
    radial-gradient(ellipse 52% 40% at 86% 88%, rgba(175, 82, 222, 0.13), transparent 70%),
    var(--bg-dark-alt);
}

.passport-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---- 全息通行证卡片（Apple Wallet 质感） ---- */
.passport-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.passport-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0b1220;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(214, 226, 255, 0.9) 38%, rgba(233, 213, 255, 0.88) 66%, rgba(186, 230, 253, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 6px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-apple), box-shadow 0.6s var(--ease-apple), filter 0.5s ease;
}

.passport-card[data-state="blank"] {
  filter: saturate(0.35) brightness(0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.passport-card[data-state="issued"]:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-5deg);
}

/* 全息虹彩光带 */
.pc-rainbow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 22%,
    rgba(255, 69, 100, 0.14) 34%,
    rgba(255, 214, 10, 0.16) 44%,
    rgba(48, 209, 88, 0.14) 54%,
    rgba(10, 132, 255, 0.18) 64%,
    transparent 76%);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.passport-card[data-state="issued"] .pc-rainbow {
  opacity: 1;
  animation: pc-iridesce 7s linear infinite;
}

@keyframes pc-iridesce {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.pc-holo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.75), transparent 46%);
  opacity: 0.7;
  pointer-events: none;
}

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pc-brand {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pc-brand i { font-style: normal; opacity: 0.55; }

.pc-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.82);
  color: #eaf2ff;
}

.pc-chip {
  color: rgba(11, 18, 32, 0.72);
}

.pc-id {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.pc-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.pc-k {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(11, 18, 32, 0.52);
}

.pc-v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-v.pc-status { color: #b25000; font-weight: 700; }
.pc-v.pc-status.ok { color: #0a7a3d; }

.passport-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-dark-secondary);
  text-align: center;
  max-width: 400px;
  line-height: 1.6;
}

/* ---- 右侧账户面板 ---- */
.passport-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
}

.pp-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-dark-secondary);
  background: transparent;
  transition: color 0.25s ease, background 0.25s ease;
}

.pp-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pp-tab:disabled { opacity: 0.4; cursor: not-allowed; }

.pp-form { display: flex; flex-direction: column; gap: 12px; }

.pp-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark-secondary);
}

#pp-email,
#pp-code {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

#pp-email::placeholder,
#pp-code::placeholder { color: rgba(245, 245, 247, 0.35); letter-spacing: 0.06em; }

#pp-email:focus,
#pp-code:focus {
  border-color: rgba(10, 132, 255, 0.75);
  background: rgba(255, 255, 255, 0.09);
}

#pp-code {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.5em;
  text-align: center;
}

.pp-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.pp-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s var(--ease-apple), background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.pp-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.pp-primary {
  color: #fff;
  background: linear-gradient(180deg, #0a84ff, #0066d6);
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pp-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #2492ff, #0a84ff);
  transform: translateY(-1px);
}

.pp-ghost {
  color: var(--text-dark-secondary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.pp-ghost:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, 0.12); }

.pp-full { width: 100%; }

.pp-note {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dark-secondary);
}

/* 账户摘要 */
.pp-account { display: flex; flex-direction: column; gap: 20px; }

.pp-me {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.pp-me-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.pp-me-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dark-secondary);
  text-transform: uppercase;
}

.pp-me-v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dark-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-keys { display: flex; flex-direction: column; gap: 10px; }

.pp-keys-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pp-keys-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.pp-mini-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-dark-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.pp-mini-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.pp-keys-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.pp-key-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-key-item.muted { color: var(--text-dark-secondary); font-size: 13px; }

.pp-key-icon { color: var(--accent-cyan); flex-shrink: 0; }

.pp-key-info { flex: 1; min-width: 0; }

.pp-key-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-key-meta {
  font-size: 11.5px;
  color: var(--text-dark-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-key-unbind {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ff6961;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.pp-key-unbind:hover { background: rgba(255, 69, 58, 0.12); }

.pp-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ---- 顶部导航通行证徽章 ---- */
.nav-auth {
  appearance: none;
  border: 1px solid var(--border-light);
  background: var(--bg-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-apple);
  max-width: 220px;
}

.nav-auth:hover { background: var(--bg-pill-hover); transform: translateY(-1px); }

.nav-auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-auth.authed { border-color: rgba(48, 209, 88, 0.4); }

.nav-auth.authed .nav-auth-dot {
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}

#nav-auth-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 响应式 ---- */
@media (max-width: 980px) {
  .passport-shell { grid-template-columns: 1fr; }
  .passport-card-wrap { order: 0; }
  .passport-panel { order: 1; }
}

@media (max-width: 720px) {
  .nav-auth { display: none; }
  .passport-card { padding: 22px 22px 20px; }
  .pp-code-row { grid-template-columns: 1fr; }
  .pp-actions { grid-template-columns: 1fr; }
}
