/* card.css — V3 名字卡片（landing.html example-card风格） */
:root {
  --red: #ff2442;
  --red-light: #ff6b81;
  --gold: #d4a853;
  --gold-light: #f5e6c8;
  --text: #1a1a1a;
  --text-sub: #555;
  --text-light: #999;
  --card-bg: #fff;
  --radius: 18px;
  --radius-sm: 14px;
}

.name-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  overflow: hidden;
  transition: transform 0.15s;
}
.name-card:active { transform: scale(0.985); }

/* 头部：头像 + 元信息 */
.nc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f5f5f5;
}
.nc-avatar {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}
.nc-meta h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.nc-meta span {
  font-size: 18px;
  color: var(--text-light);
}
/* header内的badge */
.nc-meta .nc-badge {
  margin-bottom: 2px;
}
.nc-homophone {
  font-size: 9px;
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.nc-homophone.homo-good {
  color: #4caf50;
}
.nc-homophone.homo-bad {
  color: #f44336;
}

/* 名字区：居中大字 */
.nc-name-area {
  text-align: center;
  padding: 16px 0;
}
.nc-cn {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 6px;
}
.nc-py {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 2px;
  font-family: Georgia, 'Times New Roman', serif;
}
.nc-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 7px;
  font-weight: 500;
  padding: 0px 5px;
  border-radius: 6px;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* 解读区 */
.nc-detail-area {
  background: #fafafa;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.nc-detail-row {
  margin-bottom: 10px;
}
.nc-detail-row:last-child { margin-bottom: 0; }
.nc-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nc-value {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}
.nc-value em {
  font-style: normal;
  color: var(--red);
  font-weight: 500;
}

/* 出处块：古风暖色 */
.nc-source-block {
  background: linear-gradient(135deg, #f8f4ed, #f0e8d8);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  margin-top: 14px;
}
.nc-source-block::before {
  content: '\1F4DC';
  font-size: 24px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.nc-source-poem {
  font-size: 16px;
  color: #5a4a3a;
  margin-top: 10px;
  line-height: 2;
  font-style: italic;
}
.nc-source-author {
  font-size: 14px;
  color: #8a7a6a;
  margin-top: 6px;
  letter-spacing: .5px;
}

/* 名字区内的寓意一行 */
.nc-motto-inline {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 10px;
  letter-spacing: .5px;
  line-height: 1.6;
}

/* 卡片入场动画 */
@keyframes cardFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.name-card.fade-in-up {
  animation: cardFadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* 英文名音标 */
.nc-en-pron {
  color: #999;
  font-size: 0.75em;
  font-style: normal;
  margin-left: 4px;
}

/* 分享按钮 */
.nc-share-btn { margin-left: auto; }
.nc-share-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1.5px solid #ff2442;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #ff2442; font-weight: 600;
  cursor: pointer; transition: all .15s; padding: 0;
}
.nc-share-circle:active {
  background: #ff2442; color: #fff; transform: scale(.9);
}

/* 引擎标签（和badge同风格） */
.nc-engine-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  margin-top: 6px;
  margin-left: 2px;
  letter-spacing: 0.3px;
}
.nc-engine-badge.engine-classic {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.nc-engine-badge.engine-creative {
  background: rgba(255, 193, 7, 0.18);
  color: #e6a800;
}
