:root{
  --u: 1px;
  --radius-screen: 46px;
  --radius-card: 20px;
  --radius-pill: 999px;

  --ink-0: #0d0e0f;
  --ink-1: #16181a;
  --ink-2: #1f2225;
  --ink-3: #2b2f33;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  --fg: #f2efe9;
  --fg-2: rgba(242,239,233,.72);
  --fg-3: rgba(242,239,233,.46);
  --fg-4: rgba(242,239,233,.22);

  --glass: rgba(24,25,27,.62);
  --glass-2: rgba(30,32,34,.78);
  --glass-hi: rgba(255,255,255,.06);

  --accent: #c2673f;
  --accent-2: #8a9a7b;
  --accent-fg: #14100e;

  --warn: #c9a227;
  --danger: #b04a3f;

  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --e-out: cubic-bezier(.22,.68,0,1);
  --e-in: cubic-bezier(.5,0,.9,.4);
  --e-soft: cubic-bezier(.36,.9,.28,1);
  --e-spring: cubic-bezier(.2,1.28,.3,1);
  /* 开合应用专用曲线：iOS 弹簧缓出 / 图标下沉缓动 */
  --e-ios: cubic-bezier(.25,1,.25,1);
  --e-sink: cubic-bezier(.25,.46,.45,.94);

  --t-fast: 110ms;
  --t-base: 190ms;
  --t-slow: 280ms;
  --t-page: 380ms;
  /* 应用开合与桌面下沉时长 */
  --t-app: 500ms;
  --t-sink: 400ms;

  --shadow-1: 0 1px 2px rgba(0,0,0,.28), 0 6px 18px rgba(0,0,0,.24);
  --shadow-2: 0 2px 6px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.38);
  --shadow-hair: inset 0 1px 0 rgba(255,255,255,.07);

  --sb-h: 44px;
  --nav-h: 26px;
}

:root[data-scheme="light"]{
  --ink-0: #ece7df;
  --ink-1: #f4f0e9;
  --ink-2: #fbf8f3;
  --ink-3: #ffffff;
  --line: rgba(20,18,16,.10);
  --line-strong: rgba(20,18,16,.18);
  --fg: #17150f;
  --fg-2: rgba(23,21,15,.70);
  --fg-3: rgba(23,21,15,.46);
  --fg-4: rgba(23,21,15,.16);
  --glass: rgba(250,247,242,.68);
  --glass-2: rgba(252,250,246,.86);
  --glass-hi: rgba(255,255,255,.55);
  --accent-fg: #fdfaf5;
  --shadow-1: 0 1px 2px rgba(40,32,24,.10), 0 6px 18px rgba(40,32,24,.10);
  --shadow-2: 0 2px 8px rgba(40,32,24,.12), 0 20px 48px rgba(40,32,24,.18);
  --shadow-hair: inset 0 1px 0 rgba(255,255,255,.6);
}

:root[data-motion="reduced"] *{
  animation-duration: 1ms !important;
  transition-duration: 1ms !important;
}

*,*::before,*::after{ box-sizing: border-box; }
/* 显式 display 的元素（如 .empty 的 grid）会覆盖 [hidden] 的默认值，这里统一兜底 */
[hidden]{ display: none !important; }
html,body{ height:100%; margin:0; }
body{
  background: #0a0a0b;
  font-family: var(--font);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
button{ font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input,textarea,select{ font: inherit; color: inherit; }
input,textarea,select,[contenteditable="true"]{ user-select: text; -webkit-user-select: text; }
::selection{ background: var(--accent); color: var(--accent-fg); }
img,canvas,svg{ -webkit-user-drag: none; user-select: none; }

.hair-t{ box-shadow: inset 0 1px 0 var(--line); }
.no-sel{ user-select: none; -webkit-user-select: none; }

::-webkit-scrollbar{ width: 0; height: 0; }
