/* ========================================
   Base Styles - CSS Variables & Global
   ======================================== */

/* CSS Variables */
:root {
  --bg-1: #f7fafc;
  --bg-2: #eef2f7;
  --accent-1: #7dd3fc; /* sky-300 */
  --accent-2: #a78bfa; /* violet-400 */
  --accent-3: #34d399; /* emerald-400 */
  --glass: rgba(255,255,255,0.60);
  --border: rgba(255,255,255,0.72);
  --text: rgba(17,24,39,0.92);
  --muted: rgba(17,24,39,0.60);
  --shadow: rgba(17,24,39,0.08);
  color-scheme: light;
}

/* Global Reset & Base */
html {
  height: calc(100% + env(safe-area-inset-top)) !important;
}

html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -100px, rgba(167,139,250,0.14), transparent),
              radial-gradient(800px 400px at -120px 50%, rgba(125,211,252,0.10), transparent),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 背景柔光噪点，增加玻璃感真实度 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(0,0,0,0.03), transparent 45%),
                    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.02), transparent 40%);
  pointer-events: none;
}

@supports(padding: env(safe-area-inset-top)) {
  body::before { top: env(safe-area-inset-top); }
}

/* Glass Card - 通用玻璃卡片样式 */
.glass-card {
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow), inset 0 1px rgba(255,255,255,0.6);
}

/* Chip - 通用芯片样式 */
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--text);
  font-size: 12px;
}









