﻿/* ============================================================
   Stardao China — System Under Maintenance Splash Screen Styles
   Self-contained dark theme with ambient particle background,
   mathematical flexbox centering, and responsive card layout.
   ============================================================ */

html.sd-pg-lock,
body.sd-pg-lock {
  overflow: hidden !important;
  height: 100% !important;
}

#sd-privacy-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: radial-gradient(1200px 800px at 50% -10%, #13243f 0%, #0a1120 54%, #040810 100%);
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sd-pg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.sd-pg-inner {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-pg-card {
  width: 100%;
  box-sizing: border-box;
  background: rgba(16, 26, 44, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 24px;
  padding: 32px 36px 28px;
  text-align: center;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.sd-pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-pg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.sd-pg-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.sd-pg-mark img {
  display: block;
}

.sd-pg-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sd-pg-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.sd-pg-lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.sd-pg-lang-btn:hover {
  color: #ffffff;
}

.sd-pg-lang-btn.is-active {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #06121f;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

/* Maintenance Pulse Icon */
.sd-pg-maint-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-pg-maint-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
  animation: sdMaintPulse 2.4s ease-in-out infinite;
}

@keyframes sdMaintPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.sd-pg-maint-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 132, 199, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

.sd-pg-badge-wrap {
  margin-bottom: 12px;
}

.sd-pg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sd-pg-title {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sd-pg-lead {
  font-size: 15px;
  color: #bae6fd;
  margin: 0 0 18px;
  line-height: 1.55;
  font-weight: 500;
}

.sd-pg-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  margin: 0 auto 16px;
}

.sd-pg-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 520px;
}

.sd-pg-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.sd-pg-urgent-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sd-pg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #06121f;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 16px 34px -16px rgba(56, 189, 248, 0.65);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.sd-pg-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 20px 40px -16px rgba(56, 189, 248, 0.85);
  color: #030712;
}

.sd-pg-foot {
  font-size: 11.5px;
  color: #475569;
  letter-spacing: 0.04em;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .sd-pg-card {
    padding: 24px 20px 20px;
    border-radius: 18px;
  }
  .sd-pg-title {
    font-size: 22px;
  }
}
