/* 个人主页样式 */
.profile-page {
  padding: 2rem 0;
}

/* 头部封面 */
.profile-header {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-info-main {
  display: flex;
  gap: 2rem;
  padding: 0 2rem 2rem;
  margin-top: -60px;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-details {
  padding-top: 70px;
}

.profile-details h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.profile-bio {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.profile-meta {
  display: flex;
  gap: 1.5rem;
  color: #888;
  font-size: 0.9rem;
}

/* 统计栏 */
.profile-stats-bar {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.stat-box {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #49b1f5;
}

.stat-text {
  color: #888;
  font-size: 0.9rem;
}

/* 区块 */
.profile-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.profile-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

/* 技能标签 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-tag.java { background: #e8f5e9; color: #2e7d32; }
.skill-tag.spring { background: #e8f5e9; color: #388e3c; }
.skill-tag.mysql { background: #e3f2fd; color: #1565c0; }
.skill-tag.html { background: #fff3e0; color: #e65100; }
.skill-tag.js { background: #fff8e1; color: #f9a825; }
.skill-tag.git { background: #fce4ec; color: #c2185b; }
.skill-tag.linux { background: #f3e5f5; color: #7b1fa2; }
.skill-tag.algorithm { background: #e0f7fa; color: #00838f; }

/* 社交链接 */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.social-link.github { background: #24292e; color: #fff; }
.social-link.email { background: #ea4335; color: #fff; }
.social-link.blog { background: #49b1f5; color: #fff; }

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-icon {
  font-size: 1.2rem;
}

/* 最近文章 */
.recent-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.recent-post-item:hover {
  background: #f5f5f5;
  transform: translateX(5px);
}

.recent-post-title {
  font-weight: 500;
}

.recent-post-date {
  color: #999;
  font-size: 0.85rem;
}

/* 深色模式 */
body.dark-mode .profile-header,
body.dark-mode .profile-stats-bar,
body.dark-mode .profile-section {
  background: #2a2a3e;
}

body.dark-mode .profile-details h1 {
  color: #e0e0e0;
}

body.dark-mode .profile-bio {
  color: #aaa;
}

body.dark-mode .profile-meta {
  color: #888;
}

body.dark-mode .profile-section h2 {
  color: #e0e0e0;
}

body.dark-mode .recent-post-item {
  color: #e0e0e0;
}

body.dark-mode .recent-post-item:hover {
  background: #1a1a2e;
}

/* 响应式 */
@media (max-width: 600px) {
  .profile-info-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-details {
    padding-top: 1rem;
  }
  
  .profile-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .profile-stats-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .stat-box {
    flex: 1 1 40%;
  }
}
