/* 通用样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #F9FAFB;
  background-color: #121212;
}

/* 通用链接样式 */
a {
  color: #10B981;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #059669;
}

/* 通用列表样式 */
ul, ol {
  list-style: none;
}

/* 通用图片样式 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 通用按钮样式重置 */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* 通用表单元素样式重置 */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: 1px solid #374151;
  outline: none;
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  background-color: #1E1E1E;
  color: #F9FAFB;
}

input:focus, textarea:focus, select:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* 通用容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用 flex 工具类 */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* 通用 margin 工具类 */
.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* 通用 padding 工具类 */
.p-8 {
  padding: 8px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

.p-32 {
  padding: 32px;
}

/* 通用文本工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: #F9FAFB;
}

.text-secondary {
  color: #D1D5DB;
}

.text-light {
  color: #9CA3AF;
}

.text-white {
  color: #ffffff;
}

.font-weight-500 {
  font-weight: 500;
}

.font-weight-600 {
  font-weight: 600;
}

/* 通用背景色工具类 */
.bg-white {
  background-color: #1E1E1E;
}

.bg-light {
  background-color: #121212;
}

.bg-primary {
  background-color: #10B981;
}

/* 通用边框工具类 */
.border {
  border: 1px solid #374151;
}

.border-radius {
  border-radius: 4px;
}

/* 通用阴影工具类 */
.shadow-sm {
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
}

.shadow-md {
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.4);
}

/* 通用过渡动画 */
.transition {
  transition: all 0.3s ease;
}

/* 通用隐藏工具类 */
.hidden {
  display: none;
}

/* 响应式工具类 */
@media screen and (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media screen and (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10B981;
}

/* 选择文本样式 */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

/* 通用动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* 响应式设计辅助类 */
@media screen and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
  }
  
  .flex-mobile {
    display: flex;
  }
  
  .flex-column-mobile {
    flex-direction: column;
  }
  
  .align-center-mobile {
    align-items: center;
  }
  
  .justify-center-mobile {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .text-xs-mobile {
    font-size: 12px;
  }
  
  .text-sm-mobile {
    font-size: 14px;
  }
  
  .text-md-mobile {
    font-size: 16px;
  }
  
  .p-12-mobile {
    padding: 12px;
  }
  
  .p-16-mobile {
    padding: 16px;
  }
}