/* 瞬艺绘门户首页 */
html {
  min-height: 100%;
  background: linear-gradient(180deg, #a8dff5 0%, #d4f0e8 45%, #b8e4f8 100%);
}

.portal-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: transparent;
  color: #1a5a8a;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 全屏固定背景 — 始终在内容下方 */
.portal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.portal-bg-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.portal-bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: portal-aurora-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.portal-bg-aurora--1 {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(51, 144, 255, 0.35) 0%, rgba(51, 144, 255, 0) 70%);
}

.portal-bg-aurora--2 {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  top: 38%;
  right: -10%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.32) 0%, rgba(78, 205, 196, 0) 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.portal-bg-aurora--3 {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: 8%;
  left: 18%;
  background: radial-gradient(circle, rgba(168, 223, 245, 0.45) 0%, rgba(168, 223, 245, 0) 70%);
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes portal-aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
  100% { transform: translate(-16px, 22px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-bg-aurora {
    animation: none;
  }
}

/* 前景内容层 */
.portal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.portal-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 32px 0;
}

.portal-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(51, 144, 255, 0.28);
  color: #3390ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(51, 144, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.portal-admin-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(51, 144, 255, 0.2);
}

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  text-align: center;
  background: transparent;
}

.portal-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(51, 144, 255, 0.18);
  color: #3390ff;
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portal-title {
  margin: 0 0 8px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0061c1;
  text-shadow: 0 2px 24px rgba(51, 144, 255, 0.18);
}

.portal-tagline {
  margin: 0 0 28px;
  font-size: 18px;
  color: #5a9fd4;
}

.portal-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px rgba(51, 144, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  line-height: 1.85;
  font-size: 15px;
  color: #3d6f96;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-intro:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(51, 144, 255, 0.16);
}

.portal-intro h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #0061c1;
}

.portal-intro ul {
  margin: 0;
  padding-left: 20px;
}

.portal-intro li {
  margin-bottom: 8px;
}

.portal-qrcode-wrap {
  margin-bottom: 36px;
}

.portal-qrcode-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(51, 144, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-qrcode-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 48px rgba(51, 144, 255, 0.26);
}

.portal-qrcode-box img {
  width: 196px;
  height: 196px;
  display: block;
}

.portal-qrcode-tip {
  font-size: 14px;
  color: #5a9fd4;
}

.portal-agent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3390ff 0%, #4ecdc4 100%);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 10px 32px rgba(51, 144, 255, 0.38);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.portal-agent-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(51, 144, 255, 0.45);
}

.portal-agent-sub {
  margin-top: 12px;
  font-size: 13px;
  color: #8bb8d9;
}

.portal-agent-register {
  display: inline-block;
  margin-left: 10px;
  color: #3390ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 144, 255, 0.35);
}

.portal-agent-register:hover {
  color: #0061c1;
}

.portal-footer {
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 13px;
  color: #7aa8c8;
  line-height: 2;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(51, 144, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portal-footer a {
  color: #5a9fd4;
  text-decoration: none;
}

.portal-footer a:hover {
  color: #3390ff;
  text-decoration: underline;
}

.portal-footer-divider {
  margin: 0 10px;
  color: #b8d9f5;
}

@media (max-width: 640px) {
  .portal-topbar {
    padding: 16px 16px 0;
  }

  .portal-title {
    font-size: 32px;
  }

  .portal-tagline {
    font-size: 16px;
  }

  .portal-intro {
    padding: 18px 20px;
    font-size: 14px;
  }

  .portal-agent-btn {
    min-width: 240px;
    font-size: 16px;
  }
}
