
/* 封面区 */
.profile-cover {
  height: 240px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 30%, #064e3b 100%);
  position: relative;
}
.profile-cover-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

/* 头像区 */
.profile-header {
  max-width: var(--max-width);
  margin: -56px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.ph-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ph-avatar {
  width: 96px; height: 96px;
  border-radius: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 36px; font-weight: 800;
  flex-shrink: 0;
  margin-top: -80px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.ph-info { flex: 1; }
.ph-info .ph-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ph-info h1 { font-size: 26px; font-weight: 800; }
.ph-info .ph-verified {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 10px;
  background: #eff6ff; color: #3b82f6;
  font-size: 12px; font-weight: 600;
}
.ph-info .ph-id { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.ph-info .ph-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.ph-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-tags span {
  padding: 4px 12px; border-radius: 14px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-gray); color: var(--text-secondary);
}
.ph-stats-row { display: flex; gap: 28px; }
.ph-stats-row .phs-item { text-align: center; }
.phs-item .phs-num { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.phs-item .phs-label { font-size: 12px; color: var(--text-muted); }
.ph-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-follow {
  padding: 12px 28px; border-radius: 10px;
  background: var(--primary); color: #fff;
  border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-follow:hover { background: var(--primary-dark); }
.btn-follow.followed { background: var(--bg-gray); color: var(--text-secondary); }
.btn-share {
  padding: 12px 20px; border-radius: 10px;
  background: #fff; color: var(--text-secondary);
  border: 1.5px solid var(--border); font-size: 15px;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-share:hover { border-color: var(--primary); color: var(--primary); }
.btn-join {
  padding: 12px 28px; border-radius: 10px;
  background: #3b82f6; color: #fff;
  border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-join:hover { background: #2563eb; }

/* 主体内容 */
.profile-body {
  max-width: var(--max-width);
  margin: 24px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Tab 导航 */
.pb-tabs {
  display: flex; gap: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  overflow: hidden;
}
.pb-tabs button {
  flex: 1; padding: 14px 0; border: none; background: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: all 0.15s;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.pb-tabs button:hover { color: var(--text-primary); }
.pb-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 内容卡片 */
.feed-item {
  background: #fff; border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.feed-item:hover { box-shadow: var(--shadow-md); }
.feed-item .fi-type {
  font-size: 12px; font-weight: 600; color: var(--primary);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.feed-item .fi-type.video { color: #3b82f6; }
.feed-item h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  cursor: pointer;
}
.feed-item h3:hover { color: var(--primary); }
.feed-item .fi-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 12px;
}
.feed-item .fi-meta {
  display: flex; gap: 16px; font-size: 13px; color: var(--text-muted);
  align-items: center; flex-wrap: wrap;
}
.feed-item .fi-meta span { display: flex; align-items: center; gap: 4px; }
.feed-item .fi-cover {
  width: 100%; height: 200px; border-radius: 8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

/* 侧边栏 */
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }
.ps-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.ps-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.ps-card .team-mini { display: flex; flex-direction: column; gap: 10px; }
.team-mini .tm-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.tm-row .tmr-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.tmr-avatar.c1 { background: #22c55e; }
.tmr-avatar.c2 { background: #3b82f6; }
.tmr-avatar.c3 { background: #f59e0b; }
.tmr-avatar.c4 { background: #a855f7; }
.tmr-avatar.c5 { background: #ef4444; }

.ps-card .contact-row { display: flex; flex-direction: column; gap: 8px; }
.contact-row a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; transition: all 0.15s;
  background: var(--bg-gray);
}
.contact-row a:hover { background: #f0fdf4; color: var(--primary); }

@media (max-width: 900px) {
  .profile-body { grid-template-columns: 1fr; }
  .ph-card { flex-direction: column; align-items: center; text-align: center; }
  .ph-actions { flex-direction: column; width: 100%; }
  .ph-actions button { width: 100%; }
  .ph-stats-row { justify-content: center; }
  .ph-tags { justify-content: center; }
}