:root {
  --primary-color: #4F46E5;
  --primary-hover: #4338CA;
  --secondary-color: #64748B;
  --success-color: #10B981;
  --danger-color: #EF4444;
  --warning-color: #F59E0B;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* 重置body和html的默认样式，移除导航栏下方的白边 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* 英雄区域样式 */
.hero-section {
  background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
  color: white;
  padding: 120px 0 80px 0;
  margin-bottom: 40px;
  margin-top: -120px; /* 向上移动120px，与导航栏无缝连接 */
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 12px;
  font-weight: 700;
}

/* 功能亮点区域样式 */
.features-section {
  background: #F8FAFC;
  padding: 60px 0;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #E2E8F0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #4F46E5;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #4F46E5;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1E293B;
}

.feature-desc {
  color: #64748B;
  line-height: 1.6;
}

/* 文件列表区域样式 */
.files-section {
  padding: 0 0 40px 0;
}

/* 搜索框样式 */
.search-container {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #E2E8F0;
  transition: all 0.3s ease;
  position: relative;
}

.search-box:focus-within {
  border-color: #4F46E5;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

.search-input {
  flex: 1;
  padding: 16px 50px 16px 20px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #1E293B;
  background: transparent;
}

.search-input::placeholder {
  color: #94A3B8;
  font-size: 15px;
}

/* 清除按钮样式 */
.clear-btn {
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.clear-btn:hover {
  background: #F1F5F9;
  color: #1E293B;
  transform: translateY(-50%) scale(1.1);
}

.clear-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.clear-icon {
  font-size: 18px;
  font-weight: bold;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: none;
  background: linear-gradient(135deg, #4F46E5, #3B82F6);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

/* 搜索历史下拉菜单样式 */
.search-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.search-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
}

.clear-history-btn {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-history-btn:hover {
  background: #F1F5F9;
  color: #1E293B;
}

.search-history-list {
  padding: 8px 0;
}

.search-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: #1E293B;
}

.search-history-item:hover {
  background: #F8FAFC;
}

.history-term {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-history-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0;
}

.search-history-item:hover .remove-history-btn {
  opacity: 1;
}

.remove-history-btn:hover {
  background: #F1F5F9;
  color: #EF4444;
}

.search-history-empty {
  padding: 16px;
  text-align: center;
  color: #64748B;
  font-size: 0.875rem;
}

.hidden {
  display: none;
}

.search-btn:hover {
  background: linear-gradient(135deg, #4338CA, #2563EB);
  transform: scale(1.05);
}

.search-btn:active {
  transform: scale(0.98);
}

.search-icon {
  font-size: 18px;
}

.section-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header {
  font-size: 2rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
}

.section-actions {
  display: flex;
  gap: 12px;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
  gap: 24px;
  justify-content: center;
}

/* 文件卡片样式 */
.file-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #4F46E5;
}

.file-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.file-icon-container {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F46E5, #3B82F6);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.file-icon {
  width: 32px;
  height: 42px;
  background: white;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.file-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #4F46E5, #3B82F6);
  border-radius: 1px;
}

.file-icon::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #4F46E5, #3B82F6);
  opacity: 0.6;
  border-radius: 1px;
}

.file-icon-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, #EF4444, #DC2626);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.file-icon-content {
  position: absolute;
  top: 18px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
  border-radius: 3px;
}

.file-info-header {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 700;
  color: #1F2937;
  font-size: 1.125rem;
  margin: 0 0 4px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.file-size {
  color: #64748B;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.file-card-body {
  padding: 20px 24px;
  flex: 1;
  overflow: hidden;
}

.file-project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-name,
.project-desc,
.remote-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
}

.project-name .label,
.project-desc .label,
.remote-link .label,
.created-time .label {
  color: #64748B;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 80px;
}

.project-name .value,
.project-desc .value,
.remote-link .value,
.created-time .value {
  color: #1E293B;
  font-weight: 500;
  flex: 1;
  word-break: break-word;
  line-height: 1.5;
}

.remote-link .value a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 600;
}

.remote-link .value a:hover {
  text-decoration: underline;
}

.file-card-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

/* 优化文件卡片在移动端的显示 */
@media (max-width: 768px) {
  /* 调整文件卡片头部布局，确保元素不拥挤 */
  .file-card-header {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  /* 调整文件信息头部对齐方式 */
  .file-info-header {
    text-align: center;
  }
  
  /* 调整文件互动按钮位置，避免遮挡内容 */
  .file-interactions {
    position: static;
    margin-left: 0;
    margin-top: 12px;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
  
  /* 调整文件卡片内容内边距 */
  .file-card-body {
    padding: 16px 20px;
  }
  
  /* 调整文件卡片底部内边距 */
  .file-card-footer {
    padding: 12px 20px;
  }
  
  /* 调整文件操作按钮布局，确保在移动端显示正常 */
  .file-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  /* 调整文件操作按钮宽度，确保在移动端显示正常 */
  .file-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* 调整搜索框样式，适配移动端 */
  .search-box {
    margin: 0 16px;
  }
  
  /* 调整功能亮点区域内边距 */
  .features-section {
    padding: 40px 0;
  }
  
  /* 调整英雄区域内边距 */
  .hero-section {
    padding: 140px 0 60px 0;
  }
  
  /* 调整英雄标题和副标题大小 */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* 调整英雄按钮区域布局 */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  /* 调整按钮大小，确保在移动端易于点击 */
  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }
}

.file-meta {
  flex: 1;
  min-width: 0;
}

.created-time {
  color: #64748B;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 文件互动按钮样式 */
.file-interactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: static;
  width: auto;
  margin-left: 16px;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: white;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  width: auto;
  min-width: 70px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.interaction-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-color: #4F46E5;
}

.like-btn:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.like-btn.active {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-color: #EF4444;
}

.favorite-btn:hover {
  background: rgba(245, 158, 11, 0.05);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
}

.favorite-btn.active {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border-color: #F59E0B;
}

.icon-like,
.icon-favorite {
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.interaction-btn:hover .icon-like,
.interaction-btn:hover .icon-favorite {
  transform: scale(1.1);
}

.count {
  font-weight: 700;
  font-size: 0.75rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
  min-width: 60px;
}

.btn-detail {
  background: #F1F5F9;
  color: #1E293B;
  border: 1px solid #E2E8F0;
}

.btn-detail:hover {
  background: #E2E8F0;
}

.btn-download {
  background: #4F46E5;
  color: white;
}

.btn-download:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.btn-delete {
  background: #EF4444;
  color: white;
}

.btn-delete:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-primary {
  background: #4F46E5;
  color: white;
}

.btn-primary:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  background: #F1F5F9;
  color: #1E293B;
  border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
  background: #E2E8F0;
}

/* 免费注册按钮样式 */
.btn-light {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #F8FAFC;
  border: 2px dashed #E2E8F0;
  border-radius: 16px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  color: #64748B;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
}

.empty-desc {
  color: #64748B;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 远端文件表格样式 */
.remote-section {
  background: #F8FAFC;
  padding: 60px 0;
  margin-top: 40px;
}

.remote-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
}

.remote-table {
  width: 100%;
  border-collapse: collapse;
}

.remote-table th,
.remote-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}

.remote-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #1E293B;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remote-table tbody tr {
  transition: all 0.3s ease;
}

.remote-table tbody tr:hover {
  background: #F8FAFC;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-updated {
  background: #ECFDF5;
  color: #10B981;
}

.status-no-update {
  background: #FEF3C7;
  color: #F59E0B;
}

.update-time {
  color: #64748B;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-header {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .files-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .file-card {
    min-height: auto;
  }
  
  .file-card-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    position: relative;
  }
  
  .file-info-header {
    text-align: center;
    max-width: 100%;
  }
  
  .file-name {
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
  }
  
  .file-size {
    font-size: 0.8rem;
  }
  
  .file-interactions {
    position: static;
    margin-top: 12px;
    gap: 8px;
    flex-direction: row;
    justify-content: center;
  }
  
  .interaction-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
    min-width: 70px;
  }
  
  .icon-like,
  .icon-favorite {
    font-size: 0.875rem;
  }
  
  .file-card-body {
    padding: 16px 20px;
  }
  
  .file-project {
    gap: 10px;
  }
  
  .project-name,
  .project-desc,
  .remote-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.8rem;
  }
  
  .project-name .label,
  .project-desc .label,
  .remote-link .label {
    min-width: auto;
    font-size: 0.75rem;
  }
  
  .project-name .value,
  .project-desc .value,
  .remote-link .value {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .file-card-footer {
    padding: 12px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .file-actions {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  
  .file-action {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .created-time {
    font-size: 0.75rem;
  }
  
  .remote-table th,
  .remote-table td {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
  
  /* 分类标签和标签样式调整 */
  .file-categories,
  .file-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .categories-list,
  .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .category-tag,
  .tag {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 12px;
  }
}

/* 加载指示器样式 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
}

.loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
}

/* 状态反馈消息 */
.status-message {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.status-message.show {
  transform: translateX(0);
}

.status-message.success {
  background: #10b981;
  color: white;
}

.status-message.error {
  background: #ef4444;
  color: white;
}

.status-message.info {
  background: #3b82f6;
  color: white;
}

/* 按钮加载状态 */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.loading .btn-text {
  visibility: hidden;
  position: relative;
}

.btn.loading .loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-right: 0;
}

.interaction-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.interaction-btn.loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
}

/* 旋转动画 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
