* {
  box-sizing: border-box;
}

/* 隐藏所有滚动条 */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

:root {
  /* Pastel / glass accents（参考玻璃拟态面板） */
  --primary-color: #7dd3fc;
  --primary-hover: #38bdf8;
  --secondary-color: #c4b5fd;
  --accent-rose: #f9a8d4;
  --warning-color: #fde047;
  --danger-color: #f87171;
  --success-color: #6ee7b7;

  /* Glass surfaces（--bg-color 用于表单、凹槽等需可读底色的区域） */
  --bg-color: rgba(255, 255, 255, 0.72);
  --surface-color: rgba(255, 255, 255, 0.52);
  --surface-hover: rgba(255, 255, 255, 0.64);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.08), 0 2px 12px rgba(15, 23, 42, 0.06);
  --backdrop-blur: blur(12px);

  /* Text */
  --text-main: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;

  --border-color: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: var(--glass-shadow);
  --shadow-lg: 0 16px 48px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(15, 23, 42, 0.08);

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-glass: 0.625rem;

  --font-ui:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  font-family: var(--font-ui);
  font-size: 100%;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: var(--text-main);
  background-color: transparent;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: rgba(250, 245, 255, 0.4);
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
}

button {
  font-family: inherit;
}
