/* 全局 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f7;
}

/* 容器 */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

/* PC端适配（更宽） */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}

/* 头像区 */
.profile {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.profile h1 {
  font-size: 20px;
  margin: 10px 0 5px;
}

.profile p {
  color: #666;
  font-size: 14px;
}

/* 联系方式 */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-item img {
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

/* 工具区（自适应核心） */
.tools {
  margin-top: 20px;
  display: grid;
  gap: 10px;

  /* 👇 手机默认3列 */
  grid-template-columns: repeat(3, 1fr);
}

/* 平板 4列 */
@media (min-width: 480px) {
  .tools {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PC 5列 */
@media (min-width: 768px) {
  .tools {
    grid-template-columns: repeat(5, 1fr);
  }
}

.tool-item {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: #000;
  font-size: 12px;
  transition: all 0.2s;
}

.tool-item:hover {
  transform: translateY(-2px);
}

.tool-item img {
  width: 28px;
  height: 28px;
}

/* markdown */
.markdown {
  margin-top: 20px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}