/* 开发者详情页专属样式 - 青色/金色主题，与首页统一 */
.developer-detail-page {
  min-height: calc(100vh - 200px);
  background: #F8FAFC;
}

/* Hero区域 - 开发者信息卡片 */
.developer-hero {
  background: linear-gradient(180deg, #F0FDFA 0%, #F8FAFC 100%);
  padding: 50px 20px 60px;
  position: relative;
  overflow: hidden;
}
.developer-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(13,148,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.developer-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(13,148,136,0.1);
  border: 1px solid #F1F5F9;
  position: relative;
  z-index: 2;
}

/* 顶部信息条：头像 + 昵称/徽章 + 数据 */
.dev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px dashed #E2E8F0;
}
.dev-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.developer-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(13,148,136,0.2);
}
.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dev-info {
  flex: 1;
  min-width: 0;
}
.developer-name {
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid #FCD34D;
}
.developer-meta {
  color: #64748B;
  font-size: 13px;
  margin: 0;
}
.dev-stats {
  display: flex;
  gap: 36px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #0D9488;
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

/* 下方两栏：简介 + 联系方式 */
.dev-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.dev-about,
.dev-contact {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dev-contact {
  background: #F0FDFA;
  border-color: #99F6E4;
}
.dev-block-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dev-block-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #0D9488, #14B8A6);
  border-radius: 2px;
}
.about-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
  margin: 0;
  word-break: break-all;
  flex: 1;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 0;
}
.contact-item:hover {
  border-color: #14B8A6;
  box-shadow: 0 2px 10px rgba(13,148,136,0.12);
  transform: translateY(-1px);
}
.contact-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 13px;
  color: #64748B;
  flex-shrink: 0;
}
.contact-value {
  font-size: 13px;
  color: #0F766E;
  font-weight: 600;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-empty {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
  text-align: center;
  padding: 10px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 徽章卡片 */
.badges-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.badges-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

/* 内容区域 */
.developer-detail-page .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.developer-content {
  margin-top: -30px;
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}

/* 区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #0D9488, #14B8A6);
  border-radius: 2px;
}
.section-title .count {
  color: #0D9488;
  font-size: 16px;
}

/* 九宫格卡片列表 */
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.item-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
  text-decoration: none;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0D9488, #14B8A6);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.15);
  border-color: #99F6E4;
}
.item-card:hover::before {
  transform: scaleX(1);
}
.item-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.item-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #99F6E4;
}
.item-tag.system {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}
.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.item-price {
  font-size: 18px;
  font-weight: 700;
  color: #D97706;
}
.item-price.free {
  color: #059669;
  font-size: 15px;
}
.item-meta {
  font-size: 12px;
  color: #94A3B8;
}

/* 空状态 */
.empty-state {
  background: #fff;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
}
.empty-state p {
  color: #94A3B8;
  margin: 0 0 20px;
  font-size: 15px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #fff;
  color: #0D9488;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid #99F6E4;
  transition: all 0.25s;
}
.btn-back:hover {
  background: #F0FDFA;
  transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 900px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dev-body {
    grid-template-columns: 1fr;
  }
  .dev-about,
  .dev-contact {
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .developer-hero {
    padding: 30px 16px 40px;
  }
  .developer-card {
    padding: 24px;
  }
  .dev-top {
    justify-content: center;
    text-align: center;
  }
  .dev-id {
    flex-direction: column;
    text-align: center;
  }
  .dev-info {
    text-align: center;
  }
  .developer-name {
    justify-content: center;
    font-size: 20px;
  }
  .dev-stats {
    gap: 24px;
    justify-content: center;
  }
  .stat-num {
    font-size: 22px;
  }
  .items-grid {
    grid-template-columns: 1fr;
  }
}
