/* ==========================================================================
   兰州百合数字人 (小七) - 沉浸式全屏极简加载样式
   ========================================================================== */
body { margin:0; overflow:hidden; }
#unity-container, canvas { width:100vw; height:100vh; display:block; }

:root {
  --primary-cyan: #00f2fe;
  --secondary-blue: #4facfe;
  --glow-color: rgba(0, 242, 254, 0.45);
  --text-white: #ffffff;
  --text-dim: rgba(235, 245, 255, 0.85);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050811;
  font-family: var(--font-family);
  color: var(--text-white);
}

/* ==========================================
   1. Unity 画布样式 (全屏铺满)
   ========================================== */
#unity-container {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  overflow: hidden;
  background-color: #000000;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

/* ==========================================
   2. 加载遮罩与背景 (沉浸极简)
   ========================================== */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(10, 20, 40, 0.35) 0%, rgba(5, 8, 17, 0.75) 100%),
              url('bg_image.jpg') center / cover no-repeat;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 沉浸式浮动内容区域 */
.loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  padding: 20px;
  text-align: center;
  animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 标题与主副文本 */
.brand-name {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 242, 254, 0.65), 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.brand-desc {
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 进度显示区 */
.progress-section {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-val {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  font-family: "SF Pro Display", -apple-system, sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 15px var(--glow-color);
  margin-bottom: 14px;
}

.progress-val span {
  font-size: 18px;
  color: var(--primary-cyan);
  margin-left: 2px;
}

/* 柔光流線进度条 */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--primary-cyan);
  transition: width 0.2s ease-out;
}

/* 加载文字 */
.loading-status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* 警告/错误 Banner */
#unity-warning {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: none;
}
