/**
 * Web / H5 壳层样式，对齐 stitch_178talk_app_ui / 178talk_ui_spec_v1.0.md
 * 与 lib/design_system/tokens/app_colors.dart（canvas #FBF8FF、primary #1E40AF）一致。
 */
:root {
  --178-canvas: #fbf8ff;
  --178-primary: #1e40af;
  --178-on-surface: #1a1b22;
  --178-muted: #444653;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: var(--178-canvas);
}

body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background-color: var(--178-canvas);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    system-ui, -apple-system, sans-serif;
}

#flutter-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--178-canvas);
  color: var(--178-on-surface);
  transition: opacity 0.25s ease;
}

#flutter-loading[hidden] {
  display: none;
}

#flutter-loading .brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--178-primary);
}

#flutter-loading .sub {
  font-size: 13px;
  color: var(--178-muted);
}

#flutter-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(30, 64, 175, 0.15);
  border-top-color: var(--178-primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

flutter-view,
flt-glass-pane {
  /* 首帧前避免白底闪屏 */
  background-color: var(--178-canvas) !important;
}
