/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Next.js风格黑白主题变量 */
:root {
  --color-primary: #ffffff;
  --color-primary-light: rgba(255, 255, 255, 0.1);
  --color-primary-hover: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.4);

  /* 背景色 */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #171717;

  /* 文字色 */
  --text-primary: #ededed;
  --text-secondary: #a1a1a1;
  --text-disabled: #525252;

  /* 边框色 */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
  height: 100%;
}

/* Next.js风格简约滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

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

/* Firefox滚动条样式 */
@supports (scrollbar-color: red blue) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
  }
}

/* 标题渐变效果 */
.gradient-title {
  background: linear-gradient(180deg, #ffffff 0%, #adadad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 动画与过渡 */
.transition-fast {
  transition-duration: 150ms;
}

.transition-standard {
  transition-duration: 200ms;
}

.transition-slow {
  transition-duration: 300ms;
}

.ease-standard {
  transition-timing-function: ease;
}

.ease-enter {
  transition-timing-function: ease-out;
}

.ease-exit {
  transition-timing-function: ease-in;
}

.ease-elastic {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 焦点状态 - 无障碍设计 */
:focus-visible {
  outline: 2px solid #ededed;
  outline-offset: 2px;
}

/* 主按钮样式 */
.btn-primary {
  background-color: #ededed;
  color: #0a0a0a;
  border: 2px solid #0a0a0a;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* 次级按钮样式 */
.btn-secondary {
  background-color: #0a0a0a;
  color: #ededed;
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 400;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #1a1a1a;
}

/* 卡片样式 */
.card {
  background-color: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(237, 237, 237, 0.2);
}

/* 输入框样式 */
.input {
  background-color: #0a0a0a;
  color: #ffffff;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 10px 16px;
  transition: border-color 0.2s ease;
  width: 100%;
}

.input:hover {
  border-color: rgba(237, 237, 237, 0.3);
}

.input:focus {
  outline: none;
  border-color: #ededed;
  border-width: 2px;
}

