/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1f36;
  --secondary-color: #b4a99b;
  --text-color: #333;
  --light-text: #fff;
  --input-bg: #fff;
  --input-border: #b8b4b4;
}

/* 基础样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 输入框通用样式 */
.input-common {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-common:focus {
  border-color: var(--primary-color);
}

/* 按钮基础样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

/* 按钮图标 */
.btn img,
.btn svg {
  width: 20px;
  height: 20px;
}

/* 注册按钮 */
.btn-register {
  background-color: #fff;
  border: 1px solid var(--input-border);
  color: #333;
}

.btn-register:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
  fill: var(--light-text);
}

/* 登录按钮 */
.btn-login {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-login:hover {
  background-color: #929191;
}

/* Logo样式 */
.logo {
  height: 40px;
  display: inline-block;
}

/* 标题样式 */
.heading-large {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

.heading-medium {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .heading-large {
    font-size: 32px;
  }

  .heading-medium {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 辅助类 */
.text-center {
  text-align: center;
}

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

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

.flex {
  display: flex;
}

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

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

.full-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-secondary);
  margin: 0 auto;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-icon svg {
  width: 100%;
  height: 100%;
}

.empty-icon svg path {
  fill: var(--text-secondary);
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .empty-wrapper {
    padding: 32px 0;
  }

  .empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }
}
