/* yanyu-id-card-v1：同袍名帖展示升级为江湖身份卡，不改数据库 */

#members .section-head .eyebrow::after {
  content: " · Identity Card";
}

#members-title {
  position: relative;
}

.member-card.yanyu-id-card {
  min-height: 270px;
  padding: 20px;
  border-color: rgba(132, 39, 32, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.84), rgba(232, 224, 207, 0.70)),
    var(--paper);
}

.member-card.yanyu-id-card::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(132, 39, 32, 0.20);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(132, 39, 32, 0.14), transparent 56%);
  pointer-events: none;
}

.yanyu-id-ribbon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: #7d241e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid rgba(132, 39, 32, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.yanyu-id-ribbon::before {
  content: "卷";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff7ec;
  font-size: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b2a23, #261b17);
}

.member-card.yanyu-id-card .member-top {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.member-card.yanyu-id-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 5px;
}

.member-card.yanyu-id-card .tag {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: #7c2a22;
}

.yanyu-card-summary {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: rgba(42, 33, 27, 0.78);
}

.yanyu-card-summary::before {
  content: "一句自述";
  display: block;
  margin-bottom: 3px;
  color: #9b2b24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.yanyu-id-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}

.yanyu-id-meta-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(72, 49, 38, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.yanyu-id-meta-label {
  color: #8b2b24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.yanyu-id-meta-value {
  min-width: 0;
  color: rgba(38, 29, 24, 0.82);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card.yanyu-id-card .member-tags {
  position: relative;
  z-index: 1;
}

.member-card.yanyu-id-card .profile-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 12px;
  border-color: rgba(125, 39, 32, 0.24);
  background:
    linear-gradient(135deg, rgba(20, 18, 16, 0.95), rgba(125, 32, 27, 0.92));
  color: #fff8ed;
}

.profile-modal.yanyu-id-modal .modal-layout {
  background:
    radial-gradient(circle at 8% 12%, rgba(132, 39, 32, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(255, 252, 244, 0.64), rgba(234, 226, 210, 0.44));
}

.yanyu-modal-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 11px;
  color: #862820;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  border: 1px solid rgba(132, 39, 32, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.yanyu-modal-seal::before {
  content: "身份";
  padding: 2px 6px;
  color: #fff7ec;
  font-size: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8c241e, #201714);
}

.profile-modal.yanyu-id-modal #modal-role::before {
  content: "门中身份：";
  color: #8a2a22;
  font-weight: 900;
}

.profile-modal.yanyu-id-modal #modal-deed {
  position: relative;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(132, 39, 32, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.profile-modal.yanyu-id-modal #modal-deed::before {
  content: "江湖事迹";
  display: block;
  margin-bottom: 6px;
  color: #8a2a22;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.profile-modal.yanyu-id-modal .profile-like {
  background:
    linear-gradient(135deg, #111, #7d211c);
  color: #fff8ed;
}

@media (max-width: 760px) {
  .member-card.yanyu-id-card {
    min-height: auto;
    padding: 16px;
  }

  .yanyu-id-meta-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .profile-modal.yanyu-id-modal .modal-layout {
    gap: 14px;
    padding: 22px;
  }
}
