/* 基础变量与重置 —— 浅色为主，支持深色切换 */
:root{
  --green:#28a745; --green-2:#35c04a; --green-soft:#eaf7ed; --green-soft-2:#d9f0df;
  --bg:#f5f7f6; --panel:#fff; --panel-2:#fafbfa; --side:#171717; --side-2:#232323;
  --text:#1d2621; --text-2:#5d6b63; --text-3:#93a099;
  --border:#e5ebe7; --border-2:#d8e2db;
  --shadow:0 1px 2px rgba(20,40,28,.04),0 6px 20px rgba(20,40,28,.05);
  --radius:10px; --radius-lg:16px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
}
html[data-theme="dark"]{
  --bg:#141816; --panel:#1c221e; --panel-2:#222a25; --side:#0e110f; --side-2:#1a1f1c;
  --text:#e8efe9; --text-2:#a6b4ab; --text-3:#77877d;
  --border:#2c3630; --border-2:#3a473f;
  --green-soft:#203527; --green-soft-2:#284a31;
  --shadow:0 1px 2px rgba(0,0,0,.2),0 8px 24px rgba(0,0,0,.18);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0;list-style:none}
::selection{background:var(--green-soft-2);color:var(--text)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
