/* Base theme — mirrors the site's dark design tokens */
:root {
  --bg-page: #0a0a0a;
  --bg-card: #171717;
  --bg-inner: #1f1f1f;
  --bg-hover: #262626;
  --border-color: #262626;
  --border-muted: #333333;
  --text-primary: #fafafa;
  --text-bright: #ffffff;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --el-color-primary: #6366f1;
  --el-color-primary-light-3: rgba(99, 102, 241, 0.75);
  --el-color-primary-light-5: rgba(99, 102, 241, 0.5);
  --el-color-primary-light-9: rgba(99, 102, 241, 0.09);
  --el-color-primary-dark-2: #818cf8;
  --color-success: #21b86b;
  --color-warning: #ea580c;
  --color-amber: #f59e0b;
  --color-pink: #ec4899;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

img,
video {
  max-width: 100%;
}

button {
  font-family: inherit;
}

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

::selection {
  background: rgba(99, 102, 241, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.icp-footer {
  position: relative;
  z-index: 10;
  padding: 16px 12px;
  text-align: center;
  background: var(--bg-page);
  font-size: 12px;
}

.footer-icp {
  margin-top: 10px;
  font-size: 12px;
}

.icp-footer a,
.footer-icp a {
  color: var(--text-subtle);
  text-decoration: none;
}

.icp-footer a:hover,
.footer-icp a:hover {
  color: var(--text-primary);
}
