/* ====== veypi.com 全局样式 ====== */

:root {
  /* --- 主题色 --- */
  --color-primary: #2196f3;
  --color-primary-hover: #1976d2;
  --color-primary-active: #1565c0;
  --color-primary-text: #fff;

  --color-secondary: #03a9f4;
  --color-secondary-hover: #0288d1;
  --color-secondary-active: #0277bd;
  --color-secondary-text: #fff;

  /* 反馈色 */
  --color-info: #0ea5e9;
  --color-success: #22c55e;
  --color-warning: #ff9800;
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;

  /* 背景 */
  --bg-color: #efefef;
  --bg-color-secondary: rgba(225, 225, 225, 0.3);
  --bg-color-tertiary: #d5d5d5;

  /* 文字 */
  --text-color: #222;
  --text-color-secondary: #444;
  --text-color-tertiary: #7f7f7f;
  --text-color-disabled: #9ca3af;
  --text-color-inverse: #eee;

  /* 边框 */
  --border-color: #d1d5db;
  --border-color-hover: #9ca3af;

  /* 图片滤镜 (主题切换用) */
  --img-filter: invert(0%);
  --gray-style: grayscale(60%);

  /* --- 尺寸 --- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;

  /* --- 排版 --- */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 600;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* --- 特效 --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* --- 动画 --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

html {
  overflow: hidden;
}

body {
  overflow: auto;
  overflow-x: hidden;
}

/* ====== 滚动条 ====== */
::-webkit-scrollbar {
  width: 0.375rem;
  height: 0.375rem;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color-hover);
}

/* ====== 暗色主题 ====== */
:root[theme='dark'] {
  --bg-color: #333;
  --bg-color-secondary: rgba(30, 30, 30, 0.3);
  --bg-color-tertiary: #444;

  --text-color: #eee;
  --text-color-secondary: #ccc;
  --text-color-tertiary: #7f7f7f;
  --text-color-inverse: #222;

  --border-color: #555;
  --border-color-hover: #777;

  --color-primary: #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-primary-active: #2563eb;

  --img-filter: invert(85%);
  --gray-style: grayscale(80%);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* ====== 快捷工具类 ====== */
.mainColor { color: var(--text-color); }

.hoverGrayText {
  color: var(--text-color-tertiary);
}

.hoverGrayText:hover {
  color: var(--text-color);
}

.hoverBgGrayColor:hover {
  background-color: var(--bg-color-secondary);
}

.imgInvert {
  filter: var(--img-filter);
}

/* ====== Loader ====== */
#loader-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 999999;
  background: #999;
}

#loader-wrapper .load_title {
  font-family: 'Open Sans', sans-serif;
  color: #FFF;
  font-size: 19px;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 70%;
  opacity: 1;
  line-height: 30px;
}

.lds-ripple {
  display: inline-block;
  position: relative;
  left: calc(50% - 40px);
  top: calc(70% - 100px);
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0%   { top: 36px; left: 36px; width: 0; height: 0; opacity: 1; }
  100% { top: 0px;  left: 0px;  width: 72px; height: 72px; opacity: 0; }
}

/* ====== 打印 ====== */
@media print {
  @page {
    margin: 18mm 15mm;
    size: A4;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body, vrouter, .layout-page, .layout-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
  }

  vrouter, .layout-page, .layout-content {
    display: block !important;
  }

  body {
    font-size: 11px;
    line-height: 1.6;
    color: #111 !important;
  }

  #loader-wrapper,
  .header, #header,
  .frameFooter,
  .download-link,
  siteheader, sitefooter,
  local-siteheader, local-sitefooter {
    display: none !important;
  }
}
