:root {
    --primary: #2d8cf0;
    --primary-dark: #0c7aef;
    --primary-light: rgba(45, 140, 240, .1);
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: rgba(0, 0, 0, .85);
    --text-muted: rgba(0, 0, 0, .45);
    --text-soft: rgba(0, 0, 0, .65);
    --border: #efeff5;
    --field-border: #e0e0e6;
    --field-bg: #ffffff;
    --field-focus: rgba(45, 140, 240, .12);
    --field-hover: #36ad6a;
    --sidebar-bg: #ffffff;
    --sidebar-hover: rgba(45, 140, 240, .08);
    --sidebar-active: rgba(45, 140, 240, .1);
    --sidebar-text: rgba(0, 0, 0, .78);
    --sidebar-title: rgba(0, 0, 0, .72);
    --sidebar-border: #efeff5;
    --icon-blue: #2d8cf0;
    --icon-green: #18a058;
    --icon-orange: #f0a020;
    --icon-purple: #8a2be2;
    --danger: #d03050;
    --success: #18a058;
    --warning: #f0a020;
    --radius: 8px;
    --shadow: none;
    --shadow-lg: 0 3px 12px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
    font-family: v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; }

/* 开发环境的 ThinkPHP 性能浮标不属于产品界面。 */
#think_page_trace,
#think_page_trace_open { display: none !important; }

.btn-primary,
.btn-default,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-default { background: var(--card-bg); color: var(--text); border-color: var(--field-border); }
.btn-default:hover { color: var(--primary); border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
button:disabled { cursor: not-allowed; opacity: .55; }

body.theme-dark {
    --bg: #101014;
    --card-bg: #18181c;
    --text: rgba(255, 255, 255, .82);
    --text-muted: rgba(255, 255, 255, .38);
    --text-soft: rgba(255, 255, 255, .6);
    --border: rgba(255, 255, 255, .09);
    --field-border: rgba(255, 255, 255, .16);
    --field-bg: #18181c;
    --sidebar-bg: #18181c;
    --sidebar-hover: rgba(45, 140, 240, .14);
    --sidebar-active: rgba(45, 140, 240, .18);
    --sidebar-text: rgba(255, 255, 255, .76);
    --sidebar-title: rgba(255, 255, 255, .68);
    --sidebar-border: rgba(255, 255, 255, .09);
}
