/* 主题配色与布局尺寸变量 */
:root {
    --bg-page: #f0f0f0;
    --bg-surface: #ffffff;
    --bg-subtle: #f7f7f7;
    --bg-hover: #eaf2fa;
    --bg-sidebar: #ffffff;
    --bg-sidebar-hover: #f5f5f5;
    --bg-sidebar-active: #e7f1fa;

    --border-base: #dddddd;
    --border-strong: #cccccc;
    --border-light: #eeeeee;

    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;

    --brand-primary: #337ab7;
    --brand-hover: #286090;
    --brand-soft: #e7f1fa;
    --brand-border: #bcd8ee;

    --status-ok: #3c763d;
    --status-ok-bg: #dff0d8;
    --status-warn: #8a6d3b;
    --status-warn-bg: #fcf8e3;
    --status-danger: #a94442;
    --status-danger-bg: #f2dede;

    --sidebar-width: 200px;
    --topbar-height: 50px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-page);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

ul,
ol {
    list-style: none;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 等宽数字对齐 */
.num {
    font-variant-numeric: tabular-nums;
}

.hidden {
    display: none !important;
}

/* 细滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
