:root {
  --primary-blue: #0E67DA;
  --color-primary: #0E67DA;
  --color-primary-light: #E5F0FF;
  --color-primary-dark: #0A54B3;
  --color-success: #52C41A;
  --color-warning: #FAAD14;
  --color-danger: #F5222D;
  --color-text-main: #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-weak: #9CA3AF;
  --color-border: #E5E7EB;
  --color-bg: #F9FAFB;
  --color-white: #FFFFFF;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 12px 32px rgba(15, 23, 42, 0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --admin-header-height: 60px;
  --admin-sidebar-width: 240px;
  --admin-sidebar-collapsed-width: 64px;
  --user-header-height: 72px;
  --font-family-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-code: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

html:has(.user-article-page),
body:has(.user-article-page) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  font-weight: 600;
}

h2 {
  font-size: 24px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  font-weight: 500;
}

.app-shell {
  min-height: 100vh;
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--color-text-secondary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-weak {
  color: var(--color-text-weak);
}

.text-danger {
  color: var(--color-danger);
}

.hidden {
  display: none !important;
}
