/* style.css */
:root {
  --primary: #6C5CE7;
  --bg: #f8f9fa;
}

/* 基础样式 */
html {
  font-size: 16px;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem;
}

/* 个人信息卡片 */
.profile-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.avatar {
  width: 20vmin;
  height: 20vmin;
  min-width: 100px;
  min-height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.6s;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



h1 {
  color: var(--primary);
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

/* 工具容器 */
.tool-wrapper {
  width: 100%;
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 92, 231, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 180px;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.emoji {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  transition: transform 0.3s;
}

.tool-card:hover .emoji {
  transform: scale(1.15) rotate(8deg);
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.tool-desc {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* 备案信息 */
.beian-container {
  position: fixed;
  bottom: 0;
  /* 修改以下属性 */
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 250, 0.96) 100%);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(108, 92, 231, 0.08);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beian-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #555 !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  background: rgba(108, 92, 231, 0.05);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .profile-card {
    padding: 1.5rem;
    width: 95%;
  }

  .tool-wrapper {
    padding: 1rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .tool-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .beian-container {
    padding: 12px 16px;
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 0;
  }

  .tool-card {
    padding: 2.5rem;
    min-height: 200px;
  }

  .emoji {
    font-size: 2.5rem;
  }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {

  .profile-card,
  .tool-card {
    background: rgba(30, 30, 30, 0.9);
    color: #eee;
  }

  .tool-desc {
    color: #aaa;
  }

  .beian-container {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  }

  .beian-link {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd !important;
  }
}

.console-hint {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
  opacity: 0.8;
}