/* 基础样式：重置、色板、字体 */

:root {
  --color-primary: #1677ff;
  --color-primary-hover: #4096ff;
  --color-primary-bg: #e6f4ff;
  --color-text: rgba(0, 0, 0, 0.88);
  --color-text-secondary: rgba(0, 0, 0, 0.45);
  --color-text-tertiary: rgba(0, 0, 0, 0.25);
  --color-border: #f0f0f0;
  --color-border-strong: #d9d9d9;
  --color-bg-layout: #f5f5f5;
  --color-bg-container: #ffffff;
  --color-bg-spotlight: #fafafa;
  --color-disabled-bg: #f5f5f5;
  --header-height: 56px;
  --sider-width: 208px;
  --sider-collapsed: 64px;
  --duration-layout: 0.28s;
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html:has(body.app-layout),
body.app-layout {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5714;
  color: var(--color-text);
  background: var(--color-bg-layout);
}

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

a:hover {
  color: var(--color-primary-hover);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
