/* ============================================================
   macOS Desktop Theme - Base Styles
   ============================================================ */

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

:root {
  --macos-blue: #007AFF;
  --macos-gray: #8E8E93;
  --macos-light-gray: #F2F2F7;
  --macos-dark: #1C1C1E;
  --macos-window-bg: rgba(255, 255, 255, 0.85);
  --macos-window-border: rgba(0, 0, 0, 0.1);
  --macos-statusbar-height: 28px;
  --macos-dock-height: 72px;
  --macos-radius: 12px;
  --macos-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --macos-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1d1d1f;
  background: #000;
}

a {
  color: var(--macos-blue);
  text-decoration: none;
  transition: color 0.2s var(--macos-transition);
}

a:hover {
  color: #0056CC;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* 选中文本 */
::selection {
  background: var(--macos-blue);
  color: #fff;
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}
