/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: url("../img/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  position: relative;
}

/* 背景遮罩 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.content {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.content:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-section {
  text-align: center;
  flex: 1;
}

.info-section h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.highlight-text {
  color: #4855ec;
  font-weight: 600;
  font-size: 17px;
  margin: 20px 0;
}

.motto {
  color: #e91e63;
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0 30px 0;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.link-btn {
  display: block;
  padding: 15px 20px;
  color: white;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.link-btn:active {
  transform: translateY(0);
}

.btn-official {
  background: linear-gradient(135deg, #1e90ff, #4169e1);
}
.btn-qq {
  background: linear-gradient(135deg, #ff1493, #dc143c);
}
.btn-game {
  background: linear-gradient(135deg, #9932cc, #8a2be2);
}
.btn-shop {
  background: linear-gradient(135deg, #ff8c00, #ff6347);
}

/* 平板适配 */
@media (min-width: 768px) {
  .content {
    padding: 50px 40px;
  }

  .profile-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
  }

  .info-section {
    text-align: left;
  }

  .info-section h1 {
    font-size: 32px;
  }

  .description {
    font-size: 18px;
  }

  .highlight-text {
    font-size: 18px;
  }

  .motto {
    font-size: 17px;
  }

  .links {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .link-btn {
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* 大屏幕优化 */
@media (min-width: 1024px) {
  .avatar {
    width: 220px;
    height: 220px;
  }

  .info-section h1 {
    font-size: 36px;
  }

  .links {
    gap: 15px;
  }

  .link-btn {
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .content {
    padding: 30px 20px;
  }

  .avatar {
    width: 160px;
    height: 160px;
  }

  .info-section h1 {
    font-size: 24px;
  }

  .description {
    font-size: 15px;
  }

  .highlight-text {
    font-size: 16px;
  }

  .motto {
    font-size: 15px;
  }

  .link-btn {
    padding: 12px 15px;
    font-size: 13px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  animation: fadeInUp 0.8s ease-out;
}

/* 触摸设备优化 */
@media (hover: none) {
  .link-btn:hover {
    transform: none;
  }

  .link-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }
}
